/*
 * Operação Gerenciada de Parcerias.
 * Narrative: problem curve -> CTA -> a week of operation -> fit -> CTA -> FAQ.
 *
 * Color language borrowed from the home page (front-page.css):
 *   - navy gradients on dark blocks (strategic CTA 112deg, "Estratégicos" card 150deg)
 *   - the brand spectrum (blue -> mauve -> gold) as hover borders
 *   - soft gradient frames behind evidence, white objects with shadow on top
 *   - warm + blue radial glows on the hero and the closing CTA
 *   - site buttons: primary blue on light, white on dark
 * Yellow and red stay signals only; sky is never a foreground on navy.
 */

.op-page {
  --op-navy: var(--blue);
  --op-navy-deep: var(--blue-dark);
  --op-sky: #35b7e9;
  --op-yellow: #ffc000;
  --op-red: #e24956;
  --op-ink: var(--text);
  --op-on-navy: rgba(255, 255, 255, 0.86);
  --op-rule: 1px solid var(--border);
  --op-grad-cta: linear-gradient(112deg, #06476f 0%, #065280 42%, #0f6f9e 100%);
  --op-grad-card: linear-gradient(150deg, #0a5b8a 0%, #2c99bf 100%);
  --op-grad-frame:
    radial-gradient(circle at 16% 18%, rgba(42, 146, 196, 0.22), rgba(42, 146, 196, 0.08) 34%, rgba(42, 146, 196, 0) 58%),
    radial-gradient(circle at 76% 82%, rgba(73, 182, 223, 0.18), rgba(73, 182, 223, 0.05) 30%, rgba(73, 182, 223, 0) 54%),
    linear-gradient(135deg, #e5f2fb 0%, #d4ebf8 46%, #c5e2f3 100%);
  --op-grad-glow:
    radial-gradient(circle at 12% 8%, rgba(245, 176, 95, 0.16), transparent 44%),
    radial-gradient(circle at 88% 90%, rgba(73, 182, 223, 0.14), transparent 45%),
    #ffffff;
  --op-spectrum: linear-gradient(135deg, #58bfdc 0%, #3f9fbe 22%, #2d728f 42%, #476b82 58%, #7a6f78 72%, #b87472 84%, #d89a5d 92%, #e9be63 100%);
  --op-shadow-object: 0 24px 48px rgba(6, 41, 64, 0.12);
  --op-shadow-card: 0 10px 24px rgba(10, 24, 44, 0.12);
}

.op-page h2 {
  text-wrap: balance;
}

.op-page p {
  text-wrap: pretty;
}

.op-page :where(ol, ul) {
  list-style: none;
  margin: 0;
  padding: 0;
}

.op-page a:focus-visible {
  outline: 2px solid var(--blue-hover);
  outline-offset: 4px;
  border-radius: 4px;
}

.op-strip a:focus-visible,
.op-fit__card a:focus-visible {
  outline-color: var(--white);
}

/* Spectrum border on hover, same technique as the home cards */

.op-spectrum-hover {
  position: relative;
  isolation: isolate;
}

.op-spectrum-hover::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: var(--op-spectrum);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 220ms ease-in-out;
}

.op-spectrum-hover:hover::after {
  opacity: 1;
}

/* Buttons: the site's own vocabulary */

.op-btn {
  gap: var(--space-2);
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.op-btn:hover,
.op-btn:focus-visible {
  transform: translateY(-1px);
}

.op-btn--navy {
  background: var(--blue);
  color: var(--white);
}

.op-btn--navy:hover,
.op-btn--navy:focus-visible {
  background: var(--blue-hover);
  color: var(--white);
}

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

.op-btn--white:hover,
.op-btn--white:focus-visible {
  background: #eef3f7;
  color: var(--text);
}

.op-btn i {
  transition: transform var(--transition);
}

.op-btn:hover i,
.op-btn:focus-visible i {
  transform: translateX(3px);
}

.op-text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(6, 82, 128, 0.3);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.op-text-link:hover,
.op-text-link:focus-visible {
  color: var(--blue-hover);
  text-decoration-color: currentColor;
}

.op-caption {
  margin: var(--space-5) 0 0;
  font-size: var(--text-caption-md-size);
  color: var(--text-muted);
}

/* Hero: home glows + strategic-CTA gradient panel */

.op-hero {
  padding: 144px 0 96px;
  background: var(--op-grad-glow);
}

.op-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: var(--space-9) clamp(32px, 4vw, 56px);
  align-items: center;
}

.op-hero h1 {
  margin: 0 0 var(--space-6);
  max-width: 14ch;
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.op-hero__lead {
  max-width: 46ch;
  margin-bottom: var(--space-8);
  font-size: var(--text-ui-lg-size);
  line-height: 1.6;
}

.op-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5) var(--space-7);
}

.op-art {
  margin: 0;
  padding: clamp(16px, 2vw, 24px);
  border-radius: 12px;
  background: var(--op-grad-cta);
  box-shadow: var(--op-shadow-card);
}

.op-art__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.op-art__svg--tall {
  display: none;
}

.op-art__label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  fill: var(--white);
}

.op-art__flow {
  fill: none;
  stroke: var(--white);
  stroke-opacity: 0.45;
  stroke-width: 1.5;
}

.op-art__partner {
  fill: #06476f;
  stroke: var(--white);
  stroke-width: 1.5;
}

.op-art__partner-core {
  fill: var(--white);
}

.op-art__dot {
  fill: var(--op-yellow);
}

.op-art__panel {
  fill: var(--white);
  stroke: none;
}

.op-art__panel-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  fill: var(--blue);
}

.op-art__divider {
  stroke: var(--border);
}

.op-art__check {
  fill: var(--op-sky);
}

.op-art__check-mark {
  fill: none;
  stroke: var(--blue-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.op-art__row {
  font-family: var(--font-ui);
  font-size: 13px;
  fill: var(--op-ink);
}

.op-art__handoff {
  fill: none;
  stroke: var(--op-yellow);
  stroke-width: 2;
}

.op-art__baton {
  fill: #06476f;
  stroke: var(--op-yellow);
  stroke-width: 1.5;
}

.op-art__baton-text {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  fill: var(--op-yellow);
}

.op-art__team {
  fill: var(--white);
}

.op-art__team-mark {
  fill: none;
  stroke: var(--blue-dark);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.op-art__team-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  fill: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  .op-art__motion {
    display: none;
  }
}

/* Problem: the curve on the "Estratégicos" card gradient */

.op-problem {
  padding: 112px 0;
  background: var(--white);
}

/* Title and supporting line sit side by side, as in the routine header. */

.op-problem__head {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: var(--space-4) clamp(32px, 5vw, 80px);
  align-items: start;
}

.op-problem__head h2 {
  margin: 0;
}

.op-problem__head p {
  max-width: 58ch;
  margin: 0;
  font-size: var(--text-ui-lg-size);
}

.op-curve {
  margin-top: var(--space-10);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: var(--op-grad-card);
  box-shadow: var(--op-shadow-card);
}

.op-curve .op-caption {
  margin-top: var(--space-2);
  color: var(--op-on-navy);
}

.op-curve__svg {
  display: block;
  width: 100%;
  height: auto;
}

.op-curve__svg--tall {
  display: none;
}

.op-curve__line {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}

.op-curve__base {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1.5;
}

.op-curve__stem {
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}

.op-curve__point {
  stroke: var(--blue);
  stroke-width: 3.5;
}

.op-curve__heading {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  fill: var(--white);
}

.op-curve__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
}

.op-curve__tag {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  fill: var(--op-on-navy);
}

.op-curve__sentence {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 500;
  fill: var(--white);
}

/* Mid-page CTA: the home's strategic CTA band */

.op-strip {
  padding: clamp(52px, 6vw, 76px) 0;
  background: var(--op-grad-cta);
}

.op-strip__layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6) var(--space-9);
}

.op-strip h2 {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.15;
  color: var(--white);
}

.op-strip p {
  max-width: 56ch;
  margin: 0;
  color: var(--op-on-navy);
}

/* Routine: a week of operation inside a home-style evidence frame */

/* Routine and Fit are both white, so the usual 112+112 reads as a hole
   rather than a transition: this seam is closed from both sides. */

.op-routine {
  padding: 112px 0 72px;
  background: var(--white);
}

/* Width follows weight: the short title yields to the copy that explains
   how the operation actually runs. */

.op-routine__head {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: var(--space-4) clamp(32px, 5vw, 80px);
  align-items: start;
  margin-bottom: var(--space-10);
}

.op-routine__head h2 {
  margin: 0;
  max-width: 18ch;
}

.op-routine__head p {
  margin: 0;
  max-width: 58ch;
  font-size: var(--text-ui-md-size);
}

.op-routine__cta {
  margin: var(--space-7) 0 0;
  text-align: right;
}

.op-week {
  margin: 0;
  padding: clamp(16px, 3vw, 40px);
  border-radius: 12px;
  background: var(--op-grad-frame);
}

/* The week reads left to right as one conveyor: day, verb, then the tasks.
   No colour code and no legend - the handoff says in words where we stop. */

.op-week__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto minmax(0, 1fr);
  align-items: stretch;
  padding: var(--space-6) var(--space-6) var(--space-7);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--op-shadow-object);
  list-style: none;
}

.op-week__step {
  position: relative;
  padding: 0 var(--space-4);
}

.op-week__step:first-child {
  padding-left: 0;
}

/* the conveyor line, drawn behind the day markers */

.op-week__step::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--border);
}

.op-week__step:first-child::before {
  left: 6px;
}

.op-week__day {
  position: relative;
  margin-bottom: var(--space-4) !important;
  padding-top: 26px;
  font-family: var(--font-display);
  font-size: var(--text-ui-xs-size);
  font-weight: 700;
  color: var(--text-muted);
}

.op-week__day::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--op-sky);
  box-shadow: 0 0 0 2px var(--op-sky);
}

.op-week__verb {
  margin-bottom: var(--space-3) !important;
  font-family: var(--font-display);
  font-size: var(--text-ui-md-size);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue);
}

.op-week__items {
  display: grid;
  gap: 6px;
  list-style: none;
}

.op-week__items li {
  font-size: var(--text-ui-xs-size);
  line-height: 1.45;
  color: var(--text-paragraph);
}

/* Where the operation stops: written out, not encoded in a colour. */

.op-week__handoff {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(230px, 26vw);
  padding: var(--space-5);
  margin-left: var(--space-5);
  border-radius: 8px;
  background: var(--op-grad-cta);
  color: var(--white);
}

.op-week__handoff-title {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-2) !important;
  font-family: var(--font-display);
  font-size: var(--text-ui-sm-size);
  font-weight: 700;
  line-height: 1.25;
  color: var(--white) !important;
}

.op-week__handoff-title i {
  flex: none;
  color: var(--op-yellow);
}

.op-week__handoff-body {
  font-size: var(--text-ui-xs-size);
  line-height: 1.45;
  color: var(--op-on-navy) !important;
}

.op-week .op-caption {
  margin-top: var(--space-5);
}

/* Fit: white section, list on the "Estratégicos" card gradient */

.op-fit {
  padding: 72px 0 112px;
  background: var(--white);
}

.op-fit__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: var(--space-8) clamp(32px, 5vw, 80px);
  align-items: center;
}

.op-fit__intro {
  display: grid;
  justify-items: start;
  gap: var(--space-8);
}

.op-fit h2 {
  margin: 0;
  max-width: 17ch;
}

.op-fit__list {
  display: grid;
  gap: 10px;
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: var(--op-grad-card);
  box-shadow: var(--op-shadow-card);
}

.op-fit__list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: var(--space-3);
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-size: var(--text-ui-sm-size);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.96);
}

/* Each profile carries its own icon, so the badge is sized for glyphs with
   more detail than the checkmark it used to hold. */

.op-fit__list i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--white);
  font-size: 0.95rem;
  color: var(--blue);
}

/* Close: bookends the hero glows */

/* The page closes on the same navy band as the mid-page CTA: this is the
   conversion ask, so it carries the strongest contrast on the page. */

.op-close {
  padding: 112px 0;
  background:
    radial-gradient(circle at 88% 10%, rgba(245, 176, 95, 0.18), transparent 46%),
    radial-gradient(circle at 8% 94%, rgba(73, 182, 223, 0.22), transparent 48%),
    var(--op-grad-cta);
}

/* The conversion ask stops imitating an informational row: one centred
   column, so the closing beat reads differently from the sections above. */

.op-close__layout {
  display: grid;
  justify-items: center;
  gap: var(--space-6);
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.op-close h2 {
  margin: 0;
  max-width: 20ch;
  color: var(--white);
}

.op-close__aside {
  display: grid;
  justify-items: center;
  gap: var(--space-6);
}

.op-close__aside p {
  max-width: 48ch;
  margin: 0;
  font-size: var(--text-ui-md-size);
  color: var(--op-on-navy);
}

/* FAQ closes the page on white */

.op-page .seo-faq-section {
  background: var(--white);
  border-top: var(--op-rule);
}

.op-page .seo-faq-item[open] summary {
  color: var(--blue);
}

/* Responsive */

@media (max-width: 1024px) {
  .op-hero {
    padding-top: 120px;
  }

  .op-hero__layout,
  .op-problem__head,
  .op-routine__head,
  .op-fit__layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .op-hero h1 {
    max-width: 18ch;
  }

  .op-art {
    max-width: 680px;
  }

  .op-week__track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: var(--space-6);
  }

  .op-week__step::before {
    display: none;
  }

  .op-week__handoff {
    width: auto;
    margin-left: 0;
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .op-hero {
    padding: 104px 0 var(--space-10);
  }

  .op-problem,
  .op-routine,
  .op-fit,
  .op-close {
    padding: var(--space-10) 0;
  }

  .op-art__svg--wide {
    display: none;
  }

  .op-art__svg--tall {
    display: block;
    max-width: 380px;
    margin: 0 auto;
  }

  .op-curve {
    padding: clamp(18px, 5vw, 28px);
  }

  .op-curve__svg--wide {
    display: none;
  }

  .op-curve__svg--tall {
    display: block;
  }

  .op-curve__heading {
    font-size: 19px;
  }

  .op-curve__sentence--m {
    font-size: 17px;
  }

  .op-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .op-fit__intro {
    min-width: 0;
  }

  .op-routine__cta {
    text-align: left;
  }

  .op-week__track {
    grid-template-columns: 1fr;
    row-gap: 0;
    padding: var(--space-5);
  }

  .op-week__step {
    padding: var(--space-4) 0;
    border-top: var(--op-rule);
  }

  .op-week__step:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .op-week__day {
    display: inline-block;
    margin-right: var(--space-3);
    padding-top: 0;
    padding-left: 22px;
  }

  .op-week__day::before {
    top: 50%;
    transform: translateY(-50%);
  }

  .op-week__handoff {
    margin-top: var(--space-5);
  }
}
