/* Goals: shared by the Spanish and English pages; uses the site's Satoshi family. */
.cofaco-goals {
  --goals-green: #1e6f2c;
  --goals-blue: #0b56c2;
  --goals-ink: #243a32;
  --goals-muted: #6f7b8d;
  --goals-border: #e4eae5;
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 72px;
  color: var(--goals-ink);
  font-family: 'Satoshi', sans-serif;
  text-align: left;
}
.cofaco-goals *, .cofaco-goals *::before, .cofaco-goals *::after { box-sizing: border-box; }
.cofaco-goals h1, .cofaco-goals h2, .cofaco-goals h3, .cofaco-goals p { margin: 0; }
.cofaco-goals svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.cofaco-goals [hidden] { display: none !important; }
.goals-intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; margin-bottom: 32px; }
.cofaco-goals .goals-intro h1 { color: var(--goals-green); font-family: 'Foco-Bold'; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.15; letter-spacing: normal; margin-bottom: 24px; }
.goals-intro p { color: #425166; margin-top: 0; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.28; text-align: center; }
.goals-journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; list-style: none; padding: 28px 32px; margin: 0 0 24px; border: 1px solid #e3e4e3; border-radius: 16px; background: #ececec; }
.goals-journey li { display: flex; align-items: flex-start; gap: 16px; position: relative; min-width: 0; opacity: 0; animation: goals-journey-in .6s ease-out forwards; }
.goals-journey li:nth-child(1) { animation-delay: .1s; }
.goals-journey li:nth-child(2) { animation-delay: .3s; }
.goals-journey li:nth-child(3) { animation-delay: .5s; }
.goals-journey li + li::before { content: ''; position: absolute; top: 30px; left: -26px; height: 1px; width: 16px; background: #c4d6c2; }
@keyframes goals-journey-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .goals-journey li { opacity: 1; animation: none; }
}
.goals-journey__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--goals-green); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.goals-journey__number { display: block; margin: 0 0 5px; color: var(--goals-green); font-size: 15px; letter-spacing: .12em; font-weight: 700; }
.cofaco-goals .goals-journey h2 { font-size: 19px; font-weight: 700; letter-spacing: -.025em; line-height: 1.3; }
.goals-journey p { color: #000; font-size: 14px; line-height: 1.6; margin-top: 8px; max-width: 260px; }
.goals-results { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: .95fr 1.35fr; gap: 34px; align-items: center; padding: 42px; min-height: 320px; border-radius: 18px; background: #173e26; color: #fff; }
.goals-results::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(16, 46, 26, .96), rgba(16, 46, 26, .78) 45%, rgba(16, 46, 26, .43)), url('../img/sust-imgs/goals-forest.webp') center 46% / cover; }
.cofaco-goals .goals-eyebrow { font-size: 12px; font-weight: 700; line-height: 1.6; letter-spacing: .2em; text-transform: uppercase; }
.goals-results .goals-eyebrow { color: #deebd8; }
.cofaco-goals .goals-results h2 { font-size: clamp(30px, 3.4vw, 43px); font-weight: 500; line-height: 1.09; letter-spacing: -.04em; margin-top: 17px; max-width: 390px; }
.goals-results__copy > p:last-child { color: #edf3e8; font-size: 15px; line-height: 1.7; max-width: 365px; margin-top: 20px; padding-top: 18px; position: relative; }
.goals-results__copy > p:last-child::before { content: ''; width: 36px; height: 1px; position: absolute; top: 0; left: 0; background: #a8cf45; }
.goals-results__caption { text-align: right; font-size: 9px; letter-spacing: .17em; text-transform: uppercase; color: #e4eedf; line-height: 1.7; margin-bottom: 20px !important; }
.goals-results__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.goals-result { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; min-height: 165px; padding: 20px 8px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px; background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07)); backdrop-filter: blur(8px); opacity: 0; animation: goals-result-in .55s ease-out forwards; }
.goals-result:nth-child(1) { animation-delay: 0s; }
.goals-result:nth-child(2) { animation-delay: 1.8s; }
.goals-result:nth-child(3) { animation-delay: 3.6s; }
.goals-result:nth-child(4) { animation-delay: 5.4s; }
@keyframes goals-result-in {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.goals-result > svg { width: 31px; height: 31px; }
.cofaco-goals .goals-result h3 { font-size: 17px; font-weight: 500; }
.goals-result__status { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.goals-result__status svg { width: 25px; height: 25px; padding: 4px; stroke-width: 2.5; background: #f2f7ed; border-radius: 50%; color: var(--goals-green); opacity: 0; animation: goals-check-pop .4s ease-out forwards; }
.goals-result:nth-child(1) .goals-result__status svg { animation-delay: .5s; }
.goals-result:nth-child(2) .goals-result__status svg { animation-delay: 2.3s; }
.goals-result:nth-child(3) .goals-result__status svg { animation-delay: 4.1s; }
.goals-result:nth-child(4) .goals-result__status svg { animation-delay: 5.9s; }
@keyframes goals-check-pop {
  0% { opacity: 0; transform: scale(.4); }
  65% { opacity: 1; transform: scale(1.18); }
  100% { opacity: 1; transform: scale(1); }
}
.goals-result--progress .goals-result__status { color: #f2d47d; }
.goals-result--progress .goals-result__status svg { color: #f2d47d; background: rgba(242, 212, 125, .14); padding: 1px; stroke-width: 1.7; }
@media (prefers-reduced-motion: reduce) {
  .goals-result, .goals-result__status svg { opacity: 1; animation: none; transform: none; }
}
.goals-targets { margin-top: 34px; }
.goals-targets__heading { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 0 0 22px; }
.goals-targets__heading::before,
.goals-targets__heading::after { content: ''; width: 100px; height: 1px; background: #c4d6c2; }
.cofaco-goals .goals-targets__heading h2 { color: var(--goals-green); font-size: 14px; }
.cofaco-goals .goals-targets__title { font-family: 'Foco-Bold'; color: #1a1a1a; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; text-align: center; margin: 0 0 16px; }
.cofaco-goals .goals-targets__lead { color: #1a1a1a; font-size: 15px; line-height: 1.6; text-align: center; max-width: 660px; margin: 0 auto 32px; }
.goals-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 10px; background: #eceeed; border-radius: 14px; }
.goals-tab { --category: #0b56c2; --category-tint: #edf4fd; display: flex; align-items: center; gap: 12px; padding: 16px; min-height: 76px; min-width: 0; text-align: left; border: 1px solid #e4eae5; border-radius: 9px; background: #fff; color: var(--goals-ink); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.goals-tab[data-goal="water"] { --category: #12a7c0; --category-tint: #ecf8fa; }
.goals-tab[data-goal="waste"] { --category: #1d7e1f; --category-tint: #edf5e9; }
.goals-tab[data-goal="chemicals"] { --category: #1d8fd6; --category-tint: #edf6fc; }
.goals-tab:hover { border-color: var(--category); }
.goals-tab[aria-selected="true"] { background: var(--category-tint); border-color: var(--category); box-shadow: 0 3px 10px #243a3208; }
.goals-tab > svg { color: var(--category); width: 30px; height: 30px; }
.goals-tab__label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.goals-tab__label strong { font-size: 17px; font-weight: 700; }
.goals-tab__label small { font-size: 15px; line-height: 1.4; color: #1a1a1a; }
.goals-tab__arrow { display: grid; place-items: center; width: 23px; height: 23px; margin-left: auto; border-radius: 50%; background: var(--category); color: #fff; flex-shrink: 0; visibility: hidden; }
.goals-tab__arrow svg { width: 15px; height: 15px; }
.goals-tab[aria-selected="true"] .goals-tab__arrow { visibility: visible; }
.goals-tab:focus-visible, .goals-panel:focus-visible { outline: 3px solid #0b56c2; outline-offset: 4px; }
.goals-panel { padding-top: 28px; }
.goals-panel__intro { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding: 0 10px; }
.cofaco-goals .goals-panel__intro h3 { font-size: 18px; letter-spacing: -.025em; color: var(--goals-blue); font-weight: 700; }
.goals-panel__intro p { font-size: 11px; color: var(--goals-muted); }
#goals-panel-gei .goals-panel__intro { display: block; }
#goals-panel-gei .goals-panel__intro p { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--goals-blue); }
.cofaco-goals .goals-panel__desc { font-size: 14px; color: #1a1a1a; line-height: 1.6; margin: 14px 10px 6px; }
.cofaco-goals .goals-panel__timeline-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--goals-blue); margin: 0 10px 4px; }
.goals-timeline { display: grid; grid-template-columns: minmax(150px, .9fr) 1.6fr 1.6fr; gap: 0 18px; margin-top: 30px; }
.goals-milestone { min-width: 0; --milestone-color: var(--goals-green); --milestone-tint: #eef4ea; --milestone-line: #cfe9d5; }
.goals-milestone--long { --milestone-color: var(--goals-blue); --milestone-tint: #edf3fb; --milestone-line: #d3e6f8; }
.goals-milestone--baseline { --milestone-color: #8a9096; --milestone-tint: #f1f2f3; --milestone-line: #dfe2e5; }
.goals-timeline--single { grid-template-columns: minmax(110px, 1.2fr) 2fr; }
.goals-timeline--water .goals-milestone--target { --milestone-color: #128397; --milestone-tint: #ecf8fa; --milestone-line: #cdeef3; }
.goals-timeline--waste .goals-milestone--target { --milestone-color: #1d7e1f; --milestone-tint: #edf5e9; --milestone-line: #d6ead0; }
.goals-timeline--chemicals .goals-milestone--target { --milestone-color: #1d8fd6; --milestone-tint: #edf6fc; --milestone-line: #d3e8f7; }
.goals-milestone { --next: var(--milestone-color); }
.goals-milestone--baseline { --next: var(--goals-green); }
.goals-milestone--short { --next: var(--goals-blue); }
.goals-timeline--water .goals-milestone--baseline { --next: #128397; }
.goals-timeline--chemicals .goals-milestone--baseline { --next: #1d8fd6; }
.goals-milestone__head { position: relative; padding-top: 42px; }
.goals-milestone__head::before { content: ""; position: absolute; top: 10px; left: 12px; right: -30px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--milestone-color), var(--next)); opacity: .45; }
.goals-milestone:last-child .goals-milestone__head::before { right: 0; background: linear-gradient(90deg, var(--milestone-color), transparent); }
.goals-milestone__head::after { content: ""; position: absolute; top: 0; left: 0; width: 24px; height: 24px; box-sizing: border-box; border-radius: 50%; background: var(--milestone-color); border: 5px solid #fff; box-shadow: 0 0 0 2px var(--milestone-color), 0 4px 10px rgba(36, 58, 50, .18); }
.goals-milestone__year { display: block; font-size: clamp(28px, 3vw, 36px); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; color: var(--milestone-color); }
.cofaco-goals .goals-milestone__caption { display: inline-block; margin: 10px 0 0; padding: 5px 12px; border-radius: 999px; background: var(--milestone-tint); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--milestone-color); }
.goals-milestone__icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 12px; background: var(--milestone-tint); color: var(--milestone-color); }
.goals-milestone__icon svg { width: 18px; height: 18px; stroke-width: 2; }
/* Timeline entrance: initial states only apply once JS has enabled animation (.goals-anim). */
.goals-anim .goals-milestone__head::before { transform: scaleX(0); transform-origin: left center; }
.goals-anim .goals-milestone__head::after { transform: scale(0); }
.goals-anim .goals-milestone__year, .goals-anim .goals-milestone__caption, .goals-anim .goals-metric { opacity: 0; }
.goals-anim .is-playing .goals-milestone__head::before { animation: goals-line-grow .7s ease-in-out both; animation-delay: calc(var(--step) * .45s); }
.goals-anim .is-playing .goals-milestone__head::after { animation: goals-dot-pop .45s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--step) * .45s); }
.goals-anim .is-playing .goals-milestone:last-child .goals-milestone__head::after { animation: goals-dot-pop .45s cubic-bezier(.34, 1.56, .64, 1) both, goals-dot-pulse 2.4s ease-out infinite; animation-delay: calc(var(--step) * .45s), calc(var(--step) * .45s + .6s); }
.goals-anim .is-playing .goals-milestone__year, .goals-anim .is-playing .goals-milestone__caption { animation: goals-fade-up .5s ease-out both; animation-delay: calc(var(--step) * .45s + .15s); }
.goals-anim .is-playing .goals-milestone__caption { animation-delay: calc(var(--step) * .45s + .3s); }
.goals-anim .is-playing .goals-metric { animation: goals-fade-up .55s ease-out both; animation-delay: calc(var(--step) * .45s + .35s); }
.goals-anim .is-playing .goals-metric + .goals-metric { animation-delay: calc(var(--step) * .45s + .5s); }
.goals-milestone--baseline { --step: 0; }
.goals-milestone--short { --step: 1; }
.goals-milestone--long { --step: 2; }
.goals-milestone--target { --step: 1; }
@keyframes goals-line-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes goals-dot-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes goals-dot-pulse {
  0% { box-shadow: 0 0 0 2px var(--milestone-color), 0 0 0 2px var(--milestone-line); }
  70%, 100% { box-shadow: 0 0 0 2px var(--milestone-color), 0 0 0 14px transparent; }
}
@keyframes goals-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.goals-milestone__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.goals-metric { padding: 22px; background: #fff; border: 1px solid var(--goals-border); border-radius: 14px; box-shadow: 0 4px 14px rgba(36, 58, 50, .05); }
.goals-metric__scope { display: block; font-size: 13.5px; color: #1a1a1a; font-weight: 500; }
.goals-metric__value { display: block; font-size: clamp(35px, 4vw, 49px); font-weight: 700; color: var(--milestone-color); letter-spacing: -.06em; line-height: 1.3; }
.goals-metric p { font-size: 13.5px; color: #1a1a1a; line-height: 1.6; margin-top: 3px; }
.goals-metric--list { display: flex; align-items: center; }
.goals-metric--list .goals-detail__commitments { margin: 0; padding: 0; border: 0; }
.goals-metric--list .goals-detail__commitments li { font-size: 13.5px; color: #1a1a1a; }
.goals-note { display: flex; align-items: center; justify-content: flex-start; gap: 36px; padding: 22px 36px; margin-top: 28px !important; border: 1px solid #cfe3d3; border-radius: 14px; background: #f6faf6; color: var(--goals-muted); font-size: 14px; line-height: 1.7; flex-wrap: wrap; }
.goals-note__text { display: flex; align-items: center; gap: 22px; }
.goals-note__text svg { width: 40px; height: 40px; color: var(--goals-green); flex-shrink: 0; }
.cofaco-goals .goals-note__title { margin: 0; font-size: 14px; font-weight: 600; color: #1a1a1a; }
.cofaco-goals .goals-note__subtitle { margin: 0; font-size: 16px; color: #1a1a1a; }
.goals-note__badge { display: flex; align-items: center; gap: 36px; flex-shrink: 0; }
.goals-note__divider { width: 1px; height: 48px; background: #c9d6cc; }
.goals-note__badge img { height: 66px; width: auto; display: block; }
.goals-detail__commitments { list-style: none; padding: 20px 0 0; margin: 20px 0 0; border-top: 1px solid var(--goals-border); }
.goals-detail__commitments li { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.6; }
.goals-detail__commitments li + li { margin-top: 12px; }
.goals-detail__commitments svg { width: 17px; height: 17px; margin-top: 2px; color: var(--milestone-color); flex-shrink: 0; }
#goals-panel-water .goals-panel__intro h3 { color: #128397; }
#goals-panel-waste .goals-panel__intro h3 { color: #1d7e1f; }
#goals-panel-chemicals .goals-panel__intro h3 { color: #1d8fd6; }
@media (max-width: 1050px) {
  .goals-journey { gap: 22px; padding: 24px; }
  .goals-journey li { gap: 11px; }
  .goals-journey li + li::before { display: none; }
  .goals-journey__icon { width: 44px; height: 44px; }
  .cofaco-goals .goals-journey h2 { font-size: 15px; }
  .goals-results { padding: 32px; gap: 24px; grid-template-columns: .9fr 1.2fr; }
  .goals-result { min-height: 155px; }
  .goals-results__cards { gap: 7px; }
  .goals-tab { padding: 13px 11px; gap: 9px; }
  .goals-tab > svg { width: 25px; height: 25px; }
  .goals-tab__arrow { width: 19px; height: 19px; }
  .goals-metric { padding-inline: 15px; }
}
@media (max-width: 800px) {
  .cofaco-goals { padding-top: 32px; }
  .goals-journey { gap: 20px; }
  .goals-journey li { flex-direction: column; }
  .goals-results { grid-template-columns: 1fr; gap: 24px; }
  .cofaco-goals .goals-results h2 { max-width: none; }
  .goals-results__copy > p:last-child { max-width: 530px; }
  .goals-results__caption { text-align: left; margin-bottom: 12px !important; }
  .goals-result { min-height: 145px; }
  .goals-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goals-tab { padding: 13px 16px; min-height: 70px; }
  .goals-timeline { grid-template-columns: minmax(110px, .7fr) 1.6fr 1.6fr; }
  .goals-timeline--single { grid-template-columns: minmax(90px, .8fr) 2fr; }
  .goals-milestone__metrics { grid-template-columns: 1fr; gap: 20px; }
  .goals-metric { padding: 0 20px; }
  .goals-metric p { max-width: 200px; }
}
@media (max-width: 540px) {
  .cofaco-goals { width: calc(100% - 32px); padding-bottom: 45px; }
  .goals-intro { flex-direction: column; gap: 16px; margin-bottom: 24px; }
  .cofaco-goals .goals-intro h1 { max-width: 330px; }
  .goals-journey { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .goals-journey li { flex-direction: row; gap: 16px; }
  .goals-journey p { max-width: none; font-size: 12px; margin-top: 5px; }
  .goals-journey__icon { width: 46px; height: 46px; }
  .goals-journey__number { margin-bottom: 3px; }
  .goals-results { padding: 28px 23px; border-radius: 14px; }
  .cofaco-goals .goals-results h2 { font-size: 34px; }
  .goals-results__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .goals-result { min-height: 146px; }
  .goals-result__status { font-size: 13px; }
  .goals-results__caption { font-size: 8px; }
  .goals-tabs { gap: 8px; padding: 8px; }
  .goals-tab { min-height: 76px; gap: 9px; padding: 12px 9px; }
  .goals-tab__label strong { font-size: 15px; }
  .goals-tab__label small { font-size: 14px; }
  .goals-tab__arrow { display: none; }
  .goals-panel__intro { padding-inline: 0; }
  .goals-panel { padding-top: 24px; }
  .goals-timeline, .goals-timeline--single { grid-template-columns: 1fr; gap: 28px; margin-top: 24px; }
  .goals-milestone__head::before { right: 0; }
  .goals-milestone__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .goals-metric { padding: 0 16px; }
  .goals-metric:first-child { padding-left: 0; border-left: 0; }
  .goals-metric__value { font-size: 43px; }
  .goals-note { margin-top: 24px !important; padding: 18px 20px; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .goals-tab { transition: none; }
}
