/* ==========================================================================
   Extra Ride — project hotsites (escoladeciclismo.html, corridaecaminhada.html)
   Loaded after styles.css: reuses its tokens, base, eyebrow, buttons, top bar,
   header, contact and footer. Measurements from `_design/README.md`, section
   "Hotsites dos projetos".
   ========================================================================== */

/* `.fit` grids follow the prototype's generic rule: auto-fit (min 240px) at
   ≤900px and a single column at ≤640px. Grids without it keep their columns. */

/* ------------------------------------------------------------------ Utilities */

.stack-4, .stack-12, .stack-14, .stack-32, .stack-44 { display: flex; flex-direction: column; }
.stack-4 { gap: 4px; }
.stack-12 { gap: 12px; }
.stack-14 { gap: 14px; }
.stack-32 { gap: 32px; }
.stack-44 { gap: 44px; }

ul.kit, ul.brand-points, ul.calc__items { margin: 0; padding: 0; list-style: none; }

/* ------------------------------------------------------------------ Brand placeholders */

.brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--green);
  border-radius: 6px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  text-align: center;
}

.preview-bar {
  background: var(--navy);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  padding: 9px 24px;
  letter-spacing: .2px;
}

/* ------------------------------------------------------------------ Header */

.header__start { display: flex; align-items: center; gap: 22px; }
.header__presented {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 22px;
  border-left: 1px solid var(--border);
}
.header__presented-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-3);
}
.header__presented .brand-chip { padding: 4px 12px; font-size: 12px; white-space: nowrap; }

/* ------------------------------------------------------------------ Hero */

.hs-hero { position: relative; overflow: hidden; background: var(--primary); color: #fff; }
.hs-hero__ring { width: 620px; height: 620px; border-width: 70px; right: -260px; bottom: -330px; opacity: .9; }
.hs-hero__thin-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  left: -120px;
  top: -120px;
}
.hs-hero__inner {
  position: relative;
  padding-top: 88px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 64px;
  align-items: center;
}
.hs-hero__text { display: flex; flex-direction: column; gap: 26px; }
.hs-hero__title {
  font-size: 60px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -2px;
  text-wrap: balance;
}
.hs-hero__title em { font-style: normal; color: var(--green); }
.hs-hero__lead {
  font-size: 19px;
  line-height: 1.55;
  font-weight: 500;
  max-width: 560px;
  color: var(--on-primary);
}
.hs-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn--green { background: var(--green); color: var(--navy); }
.btn--outline-light { border: 2px solid rgba(255, 255, 255, .5); color: #fff; }
.btn--lg.btn--outline-light { padding: 14px 28px; }

.hs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 14px; }
.hs-stats > div {
  border-top: 3px solid var(--green);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hs-stats dt { font-size: 30px; font-weight: 900; letter-spacing: -1px; }
.hs-stats dd { font-size: 12.5px; font-weight: 600; color: var(--on-primary-2); }

.hs-hero__media { position: relative; }
.hs-hero__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: #3B3FA6;
  box-shadow: 0 30px 70px rgba(10, 12, 60, .45);
}
.hs-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-hero__float {
  position: absolute;
  left: -28px;
  bottom: 36px;
  background: #fff;
  color: var(--navy);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-float);
}
.hs-hero__float-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-3);
}
.hs-hero__float .brand-chip { padding: 8px 16px; font-size: 15px; }

/* ------------------------------------------------------------------ Approval bar */

.approval { background: var(--green); color: var(--navy); }
.approval__inner {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
}
.approval a { color: var(--navy); font-weight: 900; border-bottom: 2px solid var(--navy); }

/* ------------------------------------------------------------------ About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 72px;
  align-items: start;
}
.about__text { font-size: 17px; line-height: 1.65; color: var(--text-2); }
.who {
  background: var(--surface-alt);
  border-radius: 16px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-3);
}
/* Always 2 columns. */
.who__numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.who__numbers > div { display: flex; flex-direction: column; gap: 4px; }
.who__numbers dt { font-size: 40px; font-weight: 900; letter-spacing: -1.5px; color: var(--primary); }
.who__numbers dd { font-size: 14px; font-weight: 600; }

.note {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.note::before {
  content: '';
  flex: 0 0 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 5px;
}
.note--primary::before { background: var(--primary); }
.note__title { font-size: 15.5px; font-weight: 800; }
.note__text { font-size: 14px; line-height: 1.5; color: var(--text-3); }

/* ------------------------------------------------------------------ Classes / courses */

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.feature__photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
  background: var(--image-empty);
}
.feature__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Course photo still to be supplied: an empty slot, as in the handoff. */
.feature__photo--empty { border: 1px dashed #A9AECB; }
.feature__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.skill { background: #fff; border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.skill__number { font-size: 12px; font-weight: 900; color: var(--green); letter-spacing: 1px; }
.skill__title { font-size: 16px; font-weight: 800; }
.skill__text { font-size: 13.5px; line-height: 1.5; color: var(--text-3); }

.routine {
  grid-column: span 2;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.routine__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--green-light);
}
/* Always 3 columns. */
.routine__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.routine__items > div { display: flex; flex-direction: column; gap: 2px; }
.routine__items dt { font-size: 22px; font-weight: 900; }
.routine__items dd { font-size: 13px; color: var(--on-primary-2); }

.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.team > div {
  border-top: 2px solid var(--primary);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.team__title { font-size: 17px; font-weight: 800; }
.team__text { font-size: 14px; line-height: 1.5; color: var(--text-3); }

.distance { border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 8px; color: #fff; background: var(--primary); }
.distance--navy { background: var(--navy); }
.distance__value { font-size: 56px; font-weight: 900; letter-spacing: -2px; line-height: 1; }
.distance--navy .distance__value { color: var(--green); }
.distance__text { font-size: 14px; line-height: 1.5; color: var(--on-primary-2); }

.facility { background: #fff; border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.facility__value { font-size: 26px; font-weight: 900; color: var(--primary); }
.facility__text { font-size: 14px; font-weight: 700; }

/* ------------------------------------------------------------------ Kit */

.narrow-head { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }

.kit { display: grid; gap: 14px; }
.kit--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kit--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kit__item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  background: #fff;
}
.kit--4 .kit__item { padding: 22px; min-height: 170px; }
.kit__qty { font-size: 30px; font-weight: 900; letter-spacing: -1px; color: var(--primary); }
.kit__name { font-size: 15px; font-weight: 800; line-height: 1.3; }
.kit--4 .kit__name { font-size: 15.5px; }
.kit__note { font-size: 12.5px; line-height: 1.45; color: var(--text-3); }
.kit--4 .kit__note { font-size: 13px; }
.kit__brand {
  margin-top: auto;
  align-self: flex-start;
  border: 1.5px dashed var(--green);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #4E7A16;
}

.snack {
  background: var(--surface-alt);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.snack__value { font-size: 42px; font-weight: 900; letter-spacing: -1.5px; color: var(--primary); }
.snack__text { font-size: 16px; line-height: 1.5; font-weight: 600; max-width: 640px; }

/* ------------------------------------------------------------------ Dark feature (rides / arena) */

.dark-feature { position: relative; overflow: hidden; }
.dark-feature .container { position: relative; }
.dark-feature__ring { width: 460px; height: 460px; border-width: 56px; border-color: var(--primary); left: -200px; bottom: -220px; }
.dark-feature__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.dark-feature__photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--image-empty-dark);
}
.dark-feature__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dark-feature__text { font-size: 17px; line-height: 1.65; color: #D4D6EE; }
.chips { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 100px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
}

/* ------------------------------------------------------------------ Where the brand appears */

.brand-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.brand-point { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); display: flex; flex-direction: column; }
.brand-point__top {
  position: relative;
  background: var(--primary);
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.brand-point__type {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--on-primary-2);
}
.brand-point__top .brand-chip { border-radius: 8px; padding: 10px 18px; font-size: 16px; color: #fff; }
.brand-point__footer { padding: 18px 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.brand-point__name { font-size: 15.5px; font-weight: 800; }
.brand-point__qty { font-size: 14px; font-weight: 800; color: var(--primary); white-space: nowrap; }

/* ------------------------------------------------------------------ Calculator */

.calc-section__inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.calc-steps { display: flex; flex-direction: column; border-top: 1px solid var(--border-strong); }
.calc-steps li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-strong); }
.calc-steps__number { font-size: 13px; font-weight: 900; color: var(--primary); min-width: 24px; }
.calc-steps__text { font-size: 15px; line-height: 1.5; }

.calc {
  background: #fff;
  border-radius: 20px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 20px 50px rgba(27, 29, 69, .08);
}
.calc__ir-block { display: flex; flex-direction: column; gap: 12px; }
.calc__ir { font-size: 34px; font-weight: 900; letter-spacing: -1px; }
.calc__range { width: 100%; margin: 0; accent-color: var(--green); }
.calc__presets { display: flex; gap: 8px; flex-wrap: wrap; }
.calc__preset {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}
.calc__preset:hover { opacity: .8; }

.calc__result {
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.calc__result-main, .calc__result-share { display: flex; flex-direction: column; gap: 4px; }
.calc__result-share { align-items: flex-end; }
.calc__result-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--green-light);
}
.calc__value { font-size: 38px; font-weight: 900; letter-spacing: -1.2px; }
.calc__pct { font-size: 26px; font-weight: 900; }
.calc__pct-label { font-size: 12px; color: var(--on-primary-2); }

.calc__items { display: flex; flex-direction: column; gap: 12px; }
.calc__item { display: flex; flex-direction: column; gap: 6px; }
.calc__item-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; }
.calc__item-cost { color: var(--text-3); white-space: nowrap; }
.calc__bar { height: 8px; background: #EEF0F7; border-radius: 100px; overflow: hidden; }
/* Bars fill in cascade, in the order of the list. */
.calc__bar span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 100px;
  transition: width .45s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.calc__legal { font-size: 12px; line-height: 1.5; color: var(--text-3); }

/* ------------------------------------------------------------------ Transparency */

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 3px solid var(--primary);
}
.timeline li { padding: 18px 18px 0 0; display: flex; flex-direction: column; gap: 6px; }
.timeline__dot {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: -26px;
  border: 3px solid #fff;
}
.timeline__dot--event { background: var(--green); }
.timeline__phase {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-3);
}
.timeline__name { font-size: 15.5px; font-weight: 800; line-height: 1.3; }

.goals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.goal { background: var(--surface-alt); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.goal__value { font-size: 40px; font-weight: 900; letter-spacing: -1.5px; color: var(--primary); }
.goal__value--text { font-size: 18px; letter-spacing: 0; line-height: 1.2; }
.goal__text { font-size: 14.5px; line-height: 1.5; font-weight: 600; }

/* ------------------------------------------------------------------ Sponsors */

.sponsors-section { padding: 88px 0; }
.sponsors-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.sponsors-head h2 { font-size: 34px; line-height: 1.1; letter-spacing: -1.2px; }
.btn--sponsors { font-size: 14.5px; padding: 15px 30px; }

.sponsors { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.sponsors__master {
  grid-row: span 2;
  background: #fff;
  border: 2px dashed var(--green);
  border-radius: 14px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}
.sponsors__master-name {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--primary);
  text-align: center;
}
.sponsors__slot {
  background: #fff;
  border: 1.5px dashed #C4C9DD;
  border-radius: 14px;
  min-height: 96px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #8A8FB0;
}
.partners { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; padding-top: 8px; }
.partners > div { display: flex; align-items: center; gap: 14px; }
.partners .card-label { letter-spacing: 1.6px; }
.partners img { height: 46px; width: auto; }
.partners__name { font-size: 14px; font-weight: 800; }

/* ------------------------------------------------------------------ Footer */

.footer__brand a { display: block; }

/* ------------------------------------------------------------------ ≤1100px */

@media (max-width: 1100px) {
  .hs-hero__title { font-size: 48px; }
}

/* ------------------------------------------------------------------ ≤900px */

@media (max-width: 900px) {
  .fit { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
  .about { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .routine { grid-column: 1 / -1; }

  /* Vertical timeline, dots sitting on the line. */
  .timeline {
    grid-template-columns: minmax(0, 1fr);
    border-top: 0;
    border-left: 3px solid var(--primary);
    padding-left: 18px;
    gap: 18px;
  }
  .timeline li { padding: 0; }
  .timeline__dot { margin: 0 0 -20px -26.5px; }

  .hs-hero__title { font-size: 38px; letter-spacing: -1px; }
  .sponsors-head h2 { font-size: 28px; letter-spacing: -.6px; }
}

/* ------------------------------------------------------------------ ≤640px */

@media (max-width: 640px) {
  .fit { grid-template-columns: minmax(0, 1fr); }
  .kit.fit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-hero__float { left: 12px; bottom: 16px; }
  .header__presented { display: none; }
  /* The extra "← Todos os projetos" link does not fit one line at 320px. */
  .topbar__links { flex-wrap: wrap; row-gap: 6px; padding: 8px 0; }
  .hs-hero__title { font-size: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  .calc__bar span { transition: none; }
}
