/* Quiénes Somos — photo-led editorial treatment */
:root {
  --q-ink: var(--brand-turquoise-deep);
  --q-deep: var(--brand-turquoise-deep);
  --q-moss: var(--brand-turquoise-mid);
  --q-lime: var(--brand-lime);
  --q-paper: var(--brand-ivory);
  --q-muted: #526b6b;
  --q-line: rgba(0, 169, 180, .2);
  --q-shadow: 0 22px 60px rgba(3, 63, 68, .12);
  --q-radius: 24px;
}

.quienes-body {
  position: relative;
  background: #eef0de url("../assets/botanical-texture.webp") center top / cover fixed no-repeat;
  color: var(--q-ink);
}

.q-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(10.75rem, 13vw, 13rem) 0 clamp(5rem, 9vw, 9rem);
}

.q-page::before,
.q-page::after {
  position: absolute;
  z-index: -1;
  width: clamp(12rem, 20vw, 21rem);
  height: clamp(18rem, 27vw, 29rem);
  background: url("../images/brand/yerba-branch.svg") center / contain no-repeat;
  opacity: .08;
  pointer-events: none;
  content: "";
}

.q-page::before { top: 10rem; left: -8rem; transform: rotate(18deg); }
.q-page::after { top: 48rem; right: -9rem; transform: scaleX(-1) rotate(14deg); }

.q-section {
  width: min(88rem, calc(100vw - 3rem));
  margin-inline: auto;
}

.q-eyebrow {
  margin: 0 0 1.15rem;
  color: var(--q-moss);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .19em;
  line-height: 1.2;
  text-transform: uppercase;
}

.q-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  min-height: 44rem;
  overflow: hidden;
  border: 1px solid var(--q-line);
  border-radius: var(--q-radius);
  background: rgba(250, 249, 241, .93);
  box-shadow: var(--q-shadow);
}

.q-hero__field {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--q-deep);
}

/* Keep the older inline page rules from reintroducing the former CSS artwork. */
.q-hero__field::before,
.q-process-card__visual::after,
.q-commitment__art::before,
.q-process-art,
.q-mate { display: none; }

.q-hero__field::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 50, 39, .04) 35%, rgba(6, 50, 39, .42) 100%);
  content: "";
  pointer-events: none;
}

.q-hero__field > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 44rem;
  object-fit: cover;
  object-position: 50% 33%;
  filter: saturate(.88) contrast(1.04);
}

.q-hero__photo-note {
  position: absolute;
  z-index: 2;
  top: 2rem;
  left: 2rem;
  display: grid;
  gap: .28rem;
  color: #f4f4df;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .17em;
  line-height: 1.2;
  text-transform: uppercase;
}

.q-hero__photo-note span:first-child::before {
  display: inline-block;
  width: 1.9rem;
  height: 1px;
  margin: 0 .65rem .2rem 0;
  background: var(--q-lime);
  content: "";
}

.q-field__badge {
  position: absolute;
  z-index: 3;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 14.4rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(218, 235, 162, .58);
  border-radius: 16px;
  background: rgba(13, 79, 63, .92);
  color: #f0f2d4;
  box-shadow: 0 16px 28px rgba(8, 47, 39, .2);
}

.q-field__badge strong {
  color: var(--q-lime);
  font: 400 2.85rem / .8 var(--font-display);
  letter-spacing: -.04em;
}

.q-field__badge span {
  max-width: 8.5rem;
  font-size: .63rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.q-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 5vw, 5.25rem) clamp(2.25rem, 4vw, 4.5rem);
}

.q-hero__copy h1 {
  max-width: 8ch;
  margin: 0;
  color: var(--q-ink);
  font: 400 clamp(3.8rem, 5.4vw, 6.1rem) / .91 var(--font-display);
  letter-spacing: -.055em;
  text-wrap: balance;
}

.q-hero__copy h1::after {
  display: block;
  width: 4.25rem;
  height: 2px;
  margin-top: 1.45rem;
  background: var(--q-moss);
  content: "";
}

.q-hero__intro {
  max-width: none;
  margin: 1.8rem 0 0;
  color: #414e49;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.62;
}

.q-hero__intro strong,
.q-callout strong { color: var(--q-deep); }

.q-callout {
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  gap: .85rem;
  align-items: center;
  max-width: none;
  margin: 1.65rem 0 0;
  padding: 1rem 1.05rem;
  border-left: 2px solid var(--q-lime);
  background: rgba(232, 238, 210, .64);
  color: #4e5d56;
  font-size: 1.02rem;
  line-height: 1.55;
}

.q-callout p { margin: 0; }

.q-callout__mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid #a5bc79;
  border-radius: 50%;
  color: var(--q-moss);
  font-size: 1rem;
}

.q-hero__copy > p:last-of-type {
  max-width: none;
  margin: 1.55rem 0 0;
  color: var(--q-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.q-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .7rem;
  margin-top: 1.8rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--q-line);
}

.q-fact {
  display: grid;
  gap: .42rem;
  color: #53635b;
}

.q-fact strong {
  color: var(--q-moss);
  font: 400 1.75rem / 1 var(--font-display);
}

.q-fact span {
  max-width: 12ch;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.q-values {
  position: relative;
  margin-top: clamp(5rem, 9vw, 9rem);
  padding: clamp(3.5rem, 5vw, 5rem) 0 clamp(3.5rem, 5vw, 5rem);
  border: 1px solid rgba(21, 72, 62, .1);
  border-radius: var(--q-radius);
  background: rgba(250, 249, 241, .76);
}

.q-section-heading {
  max-width: 60rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.q-section-heading h2 {
  margin: 0;
  color: var(--q-ink);
  font: 400 clamp(3rem, 5.1vw, 5.5rem) / .94 var(--font-display);
  letter-spacing: -.055em;
  text-wrap: balance;
}

.q-section-heading > p:last-child {
  max-width: 39rem;
  margin: 1.35rem auto 0;
  color: var(--q-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.q-values__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  width: min(82rem, calc(100% - 3.5rem));
  margin-inline: auto;
}

.q-value-card {
  position: relative;
  min-height: 27rem;
  overflow: hidden;
  padding: 13rem 1.8rem 2.25rem;
  border: 1px solid rgba(21, 72, 62, .15);
  border-radius: 20px;
  background: rgba(255, 254, 247, .92);
  box-shadow: 0 14px 32px rgba(21, 72, 62, .08);
  text-align: center;
}

.q-value-card:nth-child(2) { background: rgba(241, 245, 221, .9); }

.q-value-card::after {
  position: absolute;
  right: -1rem;
  bottom: -1.5rem;
  width: 12rem;
  height: 11rem;
  background: url("../images/brand/yerba-branch.svg") center / contain no-repeat;
  opacity: .12;
  content: "";
  pointer-events: none;
}

.q-value-card__index {
  position: absolute;
  top: 1.25rem;
  right: 1.35rem;
  color: var(--q-moss);
  font: 400 1.35rem / 1 var(--font-display);
  letter-spacing: -.04em;
}

.q-medallion {
  position: absolute;
  z-index: 1;
  top: 2rem;
  left: 50%;
  display: grid;
  place-items: center;
  width: 9.6rem;
  height: 9.6rem;
  border: 7px solid var(--q-paper);
  border-radius: 50%;
  background: #f4f5e8;
  box-shadow: 0 8px 22px rgba(21, 72, 62, .14), inset 0 0 0 1px #8fa967;
  transform: translateX(-50%);
}

.q-medallion::before {
  position: absolute;
  inset: .6rem;
  border: 1px solid rgba(91, 124, 53, .48);
  border-radius: 50%;
  content: "";
}

.q-medallion img,
.q-medallion svg {
  position: relative;
  width: 5.7rem;
  height: 5.7rem;
  object-fit: contain;
  opacity: .78;
  filter: sepia(.25) saturate(.75) hue-rotate(10deg);
}

.q-medallion svg {
  fill: none;
  stroke: var(--q-deep);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.q-medallion .q-icon-fill,
.q-medallion .q-icon-leaf {
  fill: var(--q-deep);
  stroke: none;
}

.q-medallion .q-icon-leaf { fill: var(--q-moss); }

.q-medallion .q-icon-field {
  stroke-width: 5.5;
}

.q-medallion .q-icon-vein {
  stroke: #f4f5e8;
  stroke-width: 1.8;
}

.q-value-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 1.3rem;
  color: var(--q-ink);
  font: 400 clamp(1.8rem, 2.35vw, 2.35rem) / .98 var(--font-display);
  letter-spacing: -.04em;
}

.q-value-card h3::after {
  display: block;
  width: 2.6rem;
  height: 2px;
  margin: 1rem auto 0;
  background: var(--q-lime);
  content: "";
}

.q-value-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #5d6a63;
  font-size: .91rem;
  line-height: 1.7;
}

.q-process {
  padding: clamp(5.5rem, 10vw, 10rem) 0;
}

.q-process .q-section-heading {
  margin-left: 0;
  text-align: left;
}

.q-process .q-section-heading > p:last-child { margin-left: 0; }

.q-process__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.q-process-card {
  position: relative;
  min-width: 0;
  padding: 0 1rem 2rem;
  border: 1px solid rgba(21, 72, 62, .15);
  border-radius: 20px;
  background: rgba(255, 254, 247, .91);
  box-shadow: 0 14px 30px rgba(21, 72, 62, .08);
}

.q-process-card:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 10rem;
  right: -1rem;
  width: 1.25rem;
  height: 1.25rem;
  border-top: 1px solid #76934e;
  border-right: 1px solid #76934e;
  transform: translateX(50%) rotate(45deg);
  content: "";
}

.q-process-card__visual {
  height: 15.25rem;
  margin: 0 -1rem 2.8rem;
  overflow: hidden;
  border-radius: 19px 19px 0 0;
  background: #dfe8d4;
}

.q-process-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.83) contrast(1.03);
}

.q-process-card:nth-child(1) .q-process-card__visual img { object-position: 50% 32%; }
.q-process-card:nth-child(2) .q-process-card__visual img { object-position: 50% 54%; }
.q-process-card:nth-child(3) .q-process-card__visual img { object-position: 50% 65%; }
.q-process-card:nth-child(4) .q-process-card__visual img { object-position: 50% 50%; }

.q-step {
  position: absolute;
  z-index: 3;
  top: 13.25rem;
  left: 50%;
  display: grid;
  place-items: center;
  width: 4.1rem;
  height: 4.1rem;
  border: 5px solid var(--q-paper);
  border-radius: 50%;
  background: var(--q-moss);
  color: #f8faee;
  font: 400 1.35rem / 1 var(--font-display);
  box-shadow: 0 5px 13px rgba(21, 72, 62, .2);
  transform: translateX(-50%);
}

.q-process-card h3 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 5.35rem;
  max-width: 12ch;
  margin: 0 auto 1rem;
  color: var(--q-ink);
  font: 400 clamp(1.6rem, 2.25vw, 2.2rem) / .99 var(--font-display);
  letter-spacing: -.035em;
  text-align: center;
}

.q-process-card h3::after {
  display: block;
  width: 2.25rem;
  height: 2px;
  margin: .85rem auto 0;
  background: var(--q-lime);
  content: "";
}

.q-process-card p {
  margin: 0;
  color: #66726b;
  font-size: .82rem;
  line-height: 1.65;
  text-align: center;
}

.q-commitment {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  overflow: hidden;
  border: 1px solid rgba(21, 72, 62, .12);
  border-radius: var(--q-radius);
  background: rgba(250, 249, 241, .94);
  box-shadow: var(--q-shadow);
}

.q-commitment__art {
  position: relative;
  min-height: 45rem;
  overflow: hidden;
  background: var(--q-deep);
}

.q-commitment__art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 50, 39, .04), rgba(6, 50, 39, .7));
  content: "";
  pointer-events: none;
}

.q-commitment__art > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 45rem;
  object-fit: cover;
  object-position: 50% 66%;
  filter: saturate(.8) contrast(1.08);
}

.q-commitment__stamp {
  position: absolute;
  z-index: 2;
  top: 2.25rem;
  left: 2.4rem;
  color: #edf1d6;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.q-commitment__stamp::before {
  display: inline-block;
  width: 2rem;
  height: 1px;
  margin: 0 .6rem .22rem 0;
  background: var(--q-lime);
  content: "";
}

.q-commitment__quote {
  position: absolute;
  z-index: 2;
  right: 11%;
  bottom: 11%;
  left: 11%;
  margin: 0;
  color: #f2f2de;
  font: 400 clamp(2rem, 3.4vw, 3.55rem) / .98 var(--font-display);
  letter-spacing: -.045em;
}

.q-commitment__quote::after {
  display: block;
  width: 4.5rem;
  height: 2px;
  margin-top: 1.35rem;
  background: var(--q-lime);
  content: "";
}

.q-commitment__copy {
  display: flex;
  flex-direction: column;
  min-height: 45rem;
  box-sizing: border-box;
  padding: clamp(3.8rem, 6vw, 6.25rem) clamp(2.75rem, 5vw, 5rem);
}

.q-commitment__copy h2 {
  max-width: 16ch;
  margin: 0;
  color: var(--q-ink);
  font: 400 clamp(3rem, 4.8vw, 5.35rem) / .93 var(--font-display);
  letter-spacing: -.055em;
  text-wrap: balance;
}

.q-commitment__copy h2::after {
  display: block;
  width: 4.1rem;
  height: 2px;
  margin: 1.5rem 0 1.9rem;
  background: var(--q-moss);
  content: "";
}

.q-commitment__copy > p:not(.q-eyebrow) {
  max-width: none;
  margin: 0 0 3.6rem;
  color: var(--q-muted);
  font-size: 1.24rem;
  line-height: 1.72;
}

.q-commitment__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.35rem 2.6rem;
}

.q-commitment__item {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  align-items: start;
}

.q-process-mark {
  display: grid;
  place-items: center;
  width: 2.95rem;
  height: 2.95rem;
  border: 1px solid #a1b97d;
  border-radius: 50%;
  color: var(--q-moss);
  font: 400 1.2rem / 1 var(--font-display);
}

.q-commitment__item h3 {
  margin: .12rem 0 .48rem;
  color: var(--q-ink);
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: .035em;
}

.q-commitment__item p {
  margin: 0;
  color: #6b766f;
  font-size: 1rem;
  line-height: 1.65;
}

.q-growth {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 1.2rem;
  align-items: center;
  margin-top: auto;
  padding: 1.65rem 1.75rem;
  border-top: 1px solid rgba(113, 145, 81, .35);
  border-radius: 12px;
  background: rgba(235, 240, 215, .78);
}

.q-growth__mark {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid #9ab471;
  border-radius: 50%;
  color: var(--q-moss);
  font: 400 2.45rem / 1 var(--font-display);
}

.q-growth h3 {
  margin: 0;
  color: var(--q-ink);
  font: 400 clamp(2rem, 3vw, 3rem) / 1 var(--font-display);
}

.q-growth p {
  margin: .35rem 0 0;
  color: #607067;
  font-size: 1rem;
  line-height: 1.65;
}

.q-reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 1040px) {
  .q-hero { grid-template-columns: 1fr; }
  .q-hero__field,
  .q-hero__field > img { min-height: 31rem; }
  .q-hero__copy { padding: 3.5rem clamp(2.25rem, 7vw, 5.5rem); }
  .q-process__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
  .q-process-card:not(:last-child)::after { display: none; }
  .q-commitment { grid-template-columns: 1fr; }
  .q-commitment__copy { min-height: 0; }
  .q-commitment__art,
  .q-commitment__art > img { min-height: 32rem; }
  .q-commitment__quote { max-width: 21rem; }
}

@media (max-width: 720px) {
  .quienes-body { background-attachment: scroll; }
  .q-page { padding-top: 6.2rem; padding-bottom: 4.5rem; }
  .q-section { width: calc(100vw - 1rem); }
  .q-hero,
  .q-values,
  .q-commitment { border-radius: 16px; }
  .q-hero__field,
  .q-hero__field > img { min-height: 25rem; }
  .q-hero__photo-note { top: 1.25rem; left: 1.25rem; }
  .q-field__badge { right: 1rem; bottom: 1rem; left: 1rem; min-width: 0; }
  .q-field__badge strong { font-size: 2.35rem; }
  .q-field__badge span { max-width: none; font-size: .58rem; }
  .q-hero__copy { padding: 2.75rem 1.4rem 2.35rem; }
  .q-hero__copy h1 { font-size: clamp(3.55rem, 15vw, 5rem); }
  .q-hero__intro { font-size: 1rem; }
  .q-callout { grid-template-columns: 2.45rem 1fr; font-size: .9rem; }
  .q-facts { gap: .45rem; }
  .q-fact strong { font-size: 1.4rem; }
  .q-fact span { font-size: .68rem; }
  .q-values { margin-top: 3rem; padding: 4rem 0; }
  .q-section-heading { padding-inline: 1rem; margin-bottom: 3rem; }
  .q-section-heading h2 { font-size: clamp(2.7rem, 12vw, 4.1rem); }
  .q-values__grid { grid-template-columns: 1fr; width: calc(100% - 2rem); gap: 4.2rem; }
  .q-value-card { min-height: 0; padding: 12rem 1.35rem 2.6rem; }
  .q-medallion { width: 8.8rem; height: 8.8rem; }
  .q-medallion img, .q-medallion svg { width: 5.1rem; height: 5.1rem; }
  .q-process { padding: 4.8rem 0; }
  .q-process .q-section-heading { padding-inline: 0; }
  .q-process__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .q-process-card { padding-bottom: 2.2rem; }
  .q-process-card__visual { height: 15rem; }
  .q-commitment__art,
  .q-commitment__art > img { min-height: 29rem; }
  .q-commitment__stamp { top: 1.5rem; left: 1.4rem; }
  .q-commitment__quote { right: 8%; bottom: 10%; left: 8%; font-size: 2.25rem; }
  .q-commitment__copy { padding: 2.8rem 1.4rem; }
  .q-commitment__copy h2 { font-size: clamp(2.8rem, 12vw, 4.1rem); }
  .q-commitment__list { grid-template-columns: 1fr; gap: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .q-value-card,
  .q-process-card { transition: none; }
}
