/* Shared additions for offering pages. Load after ef-work.webflow.css.
   See docs/offering-page-template.md. Keep this file small: reuse ef-work classes first. */

/* Pillar accents that ef-work.webflow.css lacks for some elements
   (green, blue, and orange already exist there). */
.big-h.purple, .label.purple, .h1-for-intro.purple-h1 { color: var(--_base-colors---purple); }
.big-h.lightblue, .label.lightblue, .h1-for-intro.lightblue-h1 { color: var(--light-blue); }

/* Comparison tables: ef-work only hides .mobonly column labels for white and green.
   This hides them for every accent on desktop and shows them where the columns stack. */
.label.np.mobonly { display: none; }
@media screen and (max-width: 991px) {
  .label.np.mobonly { display: block; }
  /* Once each cell carries its own .mobonly column label, the header row keeps only the title. */
  .simple-row-three.table-head { grid-template-columns: 1fr; }
  .simple-row-three.table-head > .flex-down { display: none; }
}

/* Full content width inside .exp-inter-c, for new blocks that have no Webflow w-node id
   (diagrams, four-step grids). Same columns as soc.html's full-width w-node ids. */
.offer-span { grid-column: 2 / 24; }
.offer-diagram { margin: 0; }
.offer-diagram img { display: block; width: 100%; height: auto; }
@media screen and (max-width: 991px) {
  .offer-span { grid-column: 1 / 7; }
}

/* Two-column comparison table (no row-label column). Use on a .simple-row-three row. */
.simple-row-three.table-2 { grid-template-columns: 1fr 1fr; }
.simple-row-three.table-2 > .bt { grid-column: 1 / -1; }
@media screen and (max-width: 991px) {
  .simple-row-three.table-2 { grid-template-columns: 1fr; }
}

/* A line break from the copy that only fits at wider widths (e.g. two-line big-h headlines). */
@media screen and (max-width: 479px) {
  br.br-desktop { display: none; }
}

/* Pillar pages: "Offerings" section, laid out like the "How We Deliver" section below it:
   a full-width rule, a sticky h1 heading on the left, one full-width row per offering page on the right.
   Markup: section.offer-links.{blue|green|purple|lightblue} > .exp-inter-c > .offer-rule + .offer-head + .offer-list > a.offer-card.
   Row content reuses ef-work classes (h2 white, label np, main-button square). */
.offer-links {
  --offer-accent: var(--_base-colors---main-gray);
  --offer-rule: var(--_base-colors---mid-gray-10);
  padding-top: 160px;
  padding-bottom: 160px;
}
.offer-links.blue { --offer-accent: var(--_base-colors---blue); }
.offer-links.green { --offer-accent: var(--_base-colors---green); }
.offer-links.purple { --offer-accent: var(--_base-colors---purple); }
.offer-links.lightblue { --offer-accent: var(--light-blue); }
.offer-links .exp-inter-c { row-gap: 64px; }
.offer-rule { grid-column: 2 / 24; height: 1px; background-color: var(--offer-rule); }
.offer-head { grid-column: 2 / 9; }
.offer-head .h1 { position: sticky; top: 80px; margin: 0; }
.offer-list { grid-column: 9 / 24; display: flex; flex-direction: column; }
.offer-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: 40px;
  padding: 48px 0 56px;
  border-top: 1px solid var(--offer-rule);
  color: inherit;
  text-decoration: none;
}
.offer-card:first-child { padding-top: 0; border-top: 0; }
.offer-card:last-child { padding-bottom: 0; }
/* Accent line that draws across the row's top rule on hover/focus */
.offer-card:not(:first-child)::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--offer-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
.offer-card:hover::before, .offer-card:focus-visible::before { transform: scaleX(1); }
.offer-card .h2 { margin: 0; line-height: 100%; transition: color .2s; }
.offer-card:hover .h2, .offer-card:focus-visible .h2 { color: var(--offer-accent); }
.offer-card:hover .main-button, .offer-card:focus-visible .main-button {
  background-color: var(--_base-colors---white);
  color: var(--_base-colors---dark);
}
.offer-card:focus-visible { outline: 2px solid var(--offer-accent); outline-offset: 12px; }
@media screen and (max-width: 991px) {
  .offer-links { padding-top: 96px; padding-bottom: 96px; }
  .offer-links .exp-inter-c { row-gap: 40px; }
  .offer-rule, .offer-head, .offer-list { grid-column: 1 / 7; }
  .offer-head .h1 { position: static; }
  .offer-card { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .offer-card::before, .offer-card .h2 { transition: none; }
}

/* Offerings page (offerings.html): one .offer-links section per pillar, stacked.
   Markup: section.offer-links.offer-group.{blue|green|purple|lightblue}; the head carries the pillar name in its accent. */
.offer-group { padding-top: 64px; padding-bottom: 64px; }
.offer-group:last-of-type { padding-bottom: 160px; }
.offer-group .offer-rule { height: 2px; background-color: var(--offer-accent); }
.offer-group-head { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }
.offer-group-name { margin: 0; line-height: 100%; }
.offer-group-name a { color: var(--offer-accent); text-decoration: none; }
.offer-group-name a:hover, .offer-group-name a:focus-visible { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media screen and (max-width: 991px) {
  .offer-group { padding-top: 48px; padding-bottom: 48px; }
  .offer-group:last-of-type { padding-bottom: 96px; }
  .offer-group-head { position: static; }
}
