/*
  Industry solution pages (/applications/:slug — currently just oil-gas).
  Loaded alongside layout.css + hero.css + location.css. The breadcrumb,
  data table and FAQ accordion still reuse the existing .xrt-location-*
  classes from location.css. Everything else here is deliberately closer to
  how skywatch.com/energy-oil-gas, eos.com/industries/oil-gas-and-mining and
  satimagingcorp.com's oil & gas page are actually built: a short hero,
  alternating full-width image/text blocks (not a grid of bordered numbered
  cards), generous whitespace, and light/flat cards only where those sites
  use them (small stat and benefit tiles) — not wrapping every section in a
  border + shadow. Tokens are the same --xrt-* set defined on .xrt-scope in
  layout.css — no new colors introduced.
*/

.xrt-sol-page {
  font-family: var(--xrt-font-b);
  color: var(--xrt-ink);
}

/* ---------------------------------------------------------------------- */
/* Hero override — same fix as .xrt-location-page (see location.css): the   */
/* shared hero.css component overlays __content absolutely on a fixed-      */
/* height __media box sized for the homepage's short copy. This page's      */
/* hero copy is short, but flip the same way so it's robust either way —    */
/* __media becomes a full-bleed background, __content sits in normal flow.  */
/* ---------------------------------------------------------------------- */

.xrt-sol-page .xrt-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  min-height: 0;
}

.xrt-sol-page .xrt-hero__content {
  position: relative;
  inset: auto;
  min-height: clamp(420px, 62vh, 560px);
  padding: 28px 20px 32px;
  gap: 2px;
  justify-content: flex-end;
}

.xrt-sol-page .xrt-hero__desc {
  margin-top: 14px;
}

.xrt-sol-page .xrt-hero__actions {
  margin-top: 24px;
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .xrt-sol-page .xrt-hero__content {
    position: relative;
    inset: auto;
    justify-content: center;
    min-height: 420px;
    padding: clamp(36px, 5vw, 64px) clamp(32px, 5vw, 56px);
    width: min(56%, 660px);
  }

  .xrt-sol-page .xrt-hero__desc {
    margin-top: 16px;
  }
}

/* ---------------------------------------------------------------------- */
/* Intro paragraph directly under the hero — plain text, no accent-bordered */
/* callout box.                                                             */
/* ---------------------------------------------------------------------- */

.xrt-sol-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--xrt-space-md) 24px 8px;
  text-align: center;
}

.xrt-sol-intro__eyebrow {
  font-family: var(--xrt-font-h);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xrt-teal);
  margin: 0 0 10px;
}

.xrt-sol-intro p {
  font-size: 16.5px;
  line-height: 1.7;
  color: #33413c;
  margin: 0;
}

/* Quick-answer callout reuses .xrt-location-quick-answer (location.css) —    */
/* give it its own top/bottom breathing room here since the intro paragraph  */
/* above it only carries 8px of bottom padding.                              */
.xrt-sol-page .xrt-location-quick-answer {
  margin: var(--xrt-space-md) auto 0;
}

/* ---------------------------------------------------------------------- */
/* Use-case overview — 4 flat category cards, each a short scannable list  */
/* of sub-topics. Sits above the detailed alternating feature blocks as a   */
/* quick index of everything the page covers.                              */
/* ---------------------------------------------------------------------- */

.xrt-sol-usecases {
  max-width: 1160px;
  margin: var(--xrt-space-md) auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .xrt-sol-usecases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .xrt-sol-usecases {
    grid-template-columns: minmax(0, 1fr);
  }
}

.xrt-sol-usecase {
  background: var(--xrt-cream);
  border-radius: var(--xrt-r-lg);
  padding: 24px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.xrt-sol-usecase:hover {
  transform: translateY(-4px);
  box-shadow: var(--xrt-shadow-sm);
}

.xrt-sol-usecase__title {
  font-family: var(--xrt-font-h);
  font-weight: 800;
  font-size: 15px;
  color: var(--xrt-ink);
  margin: 0 0 14px;
}

.xrt-sol-usecase__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.xrt-sol-usecase__list li {
  font-size: 13px;
  line-height: 1.5;
  color: #33413c;
  padding-left: 16px;
  position: relative;
}

.xrt-sol-usecase__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--xrt-lime);
}

@media (prefers-reduced-motion: reduce) {
  .xrt-sol-usecase {
    transition: none;
  }
}

/* ---------------------------------------------------------------------- */
/* Quick stats strip — flat tiles, thin divider instead of heavy shadow     */
/* card, closer to EOS's minimal stat row.                                 */
/* ---------------------------------------------------------------------- */

.xrt-sol-stats {
  max-width: 1000px;
  margin: var(--xrt-space-md) auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.xrt-sol-stat {
  text-align: center;
  padding: 8px 14px;
  border-left: 1px solid var(--xrt-border);
}

.xrt-sol-stat:first-child {
  border-left: none;
}

.xrt-sol-stat__num {
  display: block;
  font-family: var(--xrt-font-h);
  font-weight: 800;
  font-size: clamp(19px, 2.4vw, 24px);
  color: var(--xrt-lime-ink);
  letter-spacing: -0.01em;
}

.xrt-sol-stat__label {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #5b6b63;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .xrt-sol-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }
  .xrt-sol-stat:nth-child(3) {
    border-left: none;
  }
}

/* ---------------------------------------------------------------------- */
/* Section heading block, used above the feature list / table / pricing /  */
/* cases / benefits / FAQ                                                  */
/* ---------------------------------------------------------------------- */

.xrt-sol-heading {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--xrt-space-lg) 24px 8px;
  text-align: center;
}

.xrt-sol-heading__eyebrow {
  font-family: var(--xrt-font-h);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xrt-teal);
  margin: 0 0 10px;
}

.xrt-sol-heading__title {
  font-family: var(--xrt-font-h);
  font-weight: 800;
  font-size: clamp(25px, 3.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--xrt-ink);
  margin: 0 0 12px;
}

.xrt-sol-heading__sub {
  font-size: 15.5px;
  line-height: 1.7;
  color: #33413c;
  margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Alternating full-width feature blocks — the main "six ways" content,    */
/* styled the way skywatch.com/eos.com actually lay theirs out: full-width */
/* band, contained two-column inner, image one side / text the other,     */
/* alternating, no card border or drop shadow around the whole block.      */
/* ---------------------------------------------------------------------- */

.xrt-sol-feature {
  width: 100%;
  padding: var(--xrt-space-lg) 0;
}

.xrt-sol-feature--alt {
  background: var(--xrt-cream);
}

.xrt-sol-feature__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 56px;
}

.xrt-sol-feature__media {
  order: 1;
  flex: 1 1 440px;
  min-width: 0;
}

.xrt-sol-feature__text {
  order: 2;
  flex: 1 1 440px;
  min-width: 0;
}

.xrt-sol-feature--reverse .xrt-sol-feature__media {
  order: 2;
}

.xrt-sol-feature--reverse .xrt-sol-feature__text {
  order: 1;
}

.xrt-sol-feature__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--xrt-r-lg);
  background: var(--xrt-cream);
  box-shadow: var(--xrt-shadow-sm);
}

.xrt-sol-feature__caption {
  margin: 10px 4px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #5b6b63;
}

.xrt-sol-feature__table-wrap {
  max-width: 1000px;
  margin: var(--xrt-space-md) auto 0;
  padding: 0 24px;
}

.xrt-sol-feature__num {
  display: block;
  font-family: var(--xrt-font-h);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--xrt-teal);
  margin: 0 0 10px;
}

.xrt-sol-feature__title {
  font-family: var(--xrt-font-h);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 25px);
  line-height: 1.25;
  color: var(--xrt-ink);
  margin: 0 0 12px;
}

.xrt-sol-feature__intro {
  font-size: 15px;
  line-height: 1.7;
  color: #33413c;
  margin: 0 0 18px;
}

.xrt-sol-feature__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.xrt-sol-feature__list li {
  font-size: 14.5px;
  line-height: 1.6;
  color: #33413c;
  padding-left: 20px;
  position: relative;
}

.xrt-sol-feature__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--xrt-lime);
}

.xrt-sol-feature__list li strong {
  color: var(--xrt-ink);
  font-weight: 700;
}

@media (max-width: 820px) {
  .xrt-sol-feature__inner {
    flex-direction: column;
    gap: 24px;
  }
  .xrt-sol-feature__media,
  .xrt-sol-feature--reverse .xrt-sol-feature__media {
    order: 1;
  }
  .xrt-sol-feature__text,
  .xrt-sol-feature--reverse .xrt-sol-feature__text {
    order: 2;
  }
  .xrt-sol-feature {
    padding: 48px 0;
  }
}

/* ---------------------------------------------------------------------- */
/* Satellite constellation spec table wrapper (cells styled by             */
/* .xrt-location-table in location.css)                                    */
/* ---------------------------------------------------------------------- */

.xrt-sol-table-wrap {
  max-width: 1100px;
  margin: var(--xrt-space-md) auto 0;
  padding: 0 24px;
  overflow-x: auto;
}

/* ---------------------------------------------------------------------- */
/* Pricing — flat tiles, thin border only, no heavy shadow                 */
/* ---------------------------------------------------------------------- */

.xrt-sol-price-grid {
  max-width: 1000px;
  margin: var(--xrt-space-md) auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 700px) {
  .xrt-sol-price-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.xrt-sol-price-card {
  background: #fff;
  border: 1px solid var(--xrt-border);
  border-radius: var(--xrt-r-md);
  padding: 24px 24px 22px;
}

.xrt-sol-price-card__title {
  font-family: var(--xrt-font-h);
  font-weight: 800;
  font-size: 16px;
  color: var(--xrt-ink);
  margin: 0 0 4px;
}

.xrt-sol-price-card__sub {
  font-size: 12.5px;
  color: #5b6b63;
  margin: 0 0 16px;
}

.xrt-sol-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--xrt-border-light);
  font-size: 14px;
  color: #33413c;
}

.xrt-sol-price-row:first-of-type {
  border-top: none;
}

.xrt-sol-price-row__val {
  font-family: var(--xrt-font-h);
  font-weight: 800;
  color: var(--xrt-lime-ink);
  font-size: 15.5px;
}

.xrt-sol-price-note {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #5b6b63;
}

/* ---------------------------------------------------------------------- */
/* Case examples — 3 flat tiles, image + short caption, EOS "outputs"      */
/* style rather than a heavy bordered card.                                */
/* ---------------------------------------------------------------------- */

.xrt-sol-case-grid {
  max-width: 1160px;
  margin: var(--xrt-space-md) auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

@media (max-width: 900px) {
  .xrt-sol-case-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
}

.xrt-sol-case__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--xrt-r-md);
  background: var(--xrt-cream);
  margin: 0 0 16px;
}

.xrt-sol-case__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.xrt-sol-case:hover .xrt-sol-case__photo {
  transform: scale(1.06);
}

.xrt-sol-case__img--icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.xrt-sol-case__img--icon svg {
  width: 40px;
  height: 40px;
  color: var(--xrt-teal);
}

.xrt-sol-case__tag {
  display: block;
  font-family: var(--xrt-font-h);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--xrt-teal);
  margin-bottom: 8px;
}

.xrt-sol-case__title {
  font-family: var(--xrt-font-h);
  font-weight: 800;
  font-size: 16px;
  color: var(--xrt-ink);
  margin: 0 0 8px;
}

.xrt-sol-case__desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #33413c;
  margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Benefits strip — flat, no border, subtle background tint only           */
/* ---------------------------------------------------------------------- */

.xrt-sol-benefits {
  max-width: 1160px;
  margin: var(--xrt-space-md) auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

@media (max-width: 900px) {
  .xrt-sol-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .xrt-sol-benefits {
    grid-template-columns: minmax(0, 1fr);
  }
}

.xrt-sol-benefit {
  text-align: center;
  padding: 20px 14px;
}

.xrt-sol-benefit__icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  color: var(--xrt-teal);
}

.xrt-sol-benefit__title {
  font-family: var(--xrt-font-h);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--xrt-ink);
  margin: 0 0 5px;
}

.xrt-sol-benefit__desc {
  font-size: 12px;
  line-height: 1.5;
  color: #5b6b63;
  margin: 0;
}

/* ---------------------------------------------------------------------- */
/* FAQ section wrapper                                                     */
/* ---------------------------------------------------------------------- */

.xrt-sol-faq-wrap {
  max-width: 820px;
  margin: var(--xrt-space-md) auto 0;
  padding: 0 24px;
}

/* ---------------------------------------------------------------------- */
/* Final CTA band                                                          */
/* ---------------------------------------------------------------------- */

.xrt-sol-cta {
  max-width: 1160px;
  margin: var(--xrt-space-lg) auto var(--xrt-space-md);
  padding: 0 24px;
}

.xrt-sol-cta__inner {
  background: var(--xrt-deep);
  border-radius: var(--xrt-r-lg);
  padding: 40px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.xrt-sol-cta__title {
  font-family: var(--xrt-font-h);
  font-weight: 800;
  font-size: clamp(19px, 2.6vw, 24px);
  color: var(--xrt-on-deep);
  margin: 0 0 6px;
}

.xrt-sol-cta__text {
  font-size: 14px;
  color: var(--xrt-on-deep-muted);
  margin: 0;
  max-width: 480px;
}

.xrt-sol-cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.xrt-sol-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--xrt-font-h);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  border-radius: var(--xrt-r-md);
  padding: 12px 20px;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.xrt-sol-cta__btn:hover {
  transform: translateY(-2px);
}

.xrt-sol-cta__btn--primary {
  background: var(--xrt-lime);
  color: var(--xrt-lime-ink);
}

.xrt-sol-cta__btn--primary:hover {
  filter: brightness(1.05);
}

.xrt-sol-cta__btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--xrt-on-deep);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.xrt-sol-cta__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ---------------------------------------------------------------------- */
/* Scroll-reveal entrance animation.                                       */
/*                                                                          */
/* Safety model: the DEFAULT state of .xrt-reveal is fully visible. It is  */
/* only hidden once the page's own JS successfully runs and adds           */
/* .xrt-anim-ready to <html> — so with JS disabled, JS erroring, or        */
/* prefers-reduced-motion on, every .xrt-reveal element just renders       */
/* normally with no animation and nothing is ever permanently hidden.      */
/* ---------------------------------------------------------------------- */

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

/* Scoped with :not() (not a plain .xrt-reveal.xrt-reveal--on rule) so once
   the reveal finishes, this stops matching and specificity drops back to
   the plain .xrt-reveal rule above — otherwise this would permanently
   outrank each component's own :hover transform (e.g. .xrt-sol-price-card
   :hover translateY) after the entrance animation settles. */
html.xrt-anim-ready .xrt-reveal:not(.xrt-reveal--on) {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--xrt-reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html.xrt-anim-ready .xrt-reveal:not(.xrt-reveal--on) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------------------- */
/* Hover micro-interactions.                                               */
/* ---------------------------------------------------------------------- */

.xrt-sol-feature__media {
  overflow: hidden;
  border-radius: var(--xrt-r-lg);
}

.xrt-sol-feature__media img {
  transition: transform 0.5s ease;
}

.xrt-sol-feature__media:hover img {
  transform: scale(1.045);
}

.xrt-sol-stat {
  transition: transform 0.2s ease;
}

.xrt-sol-stat:hover {
  transform: translateY(-3px);
}

.xrt-sol-price-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.xrt-sol-price-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--xrt-shadow-md);
  border-color: var(--xrt-teal);
}

.xrt-sol-case {
  transition: transform 0.22s ease;
}

.xrt-sol-case:hover {
  transform: translateY(-4px);
}

.xrt-sol-case__img--icon svg {
  transition: transform 0.3s ease;
}

.xrt-sol-case:hover .xrt-sol-case__img--icon svg {
  transform: scale(1.12);
}

.xrt-sol-benefit {
  transition: transform 0.2s ease;
  border-radius: var(--xrt-r-md);
}

.xrt-sol-benefit:hover {
  transform: translateY(-3px);
}

.xrt-sol-benefit__icon {
  transition: transform 0.3s ease, color 0.2s ease;
}

.xrt-sol-benefit:hover .xrt-sol-benefit__icon {
  transform: scale(1.15);
  color: var(--xrt-lime-ink);
}

.xrt-sol-page .xrt-location-faq details {
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.xrt-sol-page .xrt-location-faq details[open] {
  border-color: var(--xrt-teal);
  box-shadow: var(--xrt-shadow-sm);
}

.xrt-sol-page .xrt-location-faq summary {
  transition: background 0.15s ease;
}

.xrt-sol-page .xrt-location-faq summary:hover {
  background: var(--xrt-cream);
}

.xrt-sol-page .xrt-location-faq summary::after {
  transition: transform 0.25s ease;
}

.xrt-sol-page .xrt-location-faq details[open] summary::after {
  content: '+';
  transform: translateY(-50%) rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .xrt-sol-feature__media img,
  .xrt-sol-stat,
  .xrt-sol-price-card,
  .xrt-sol-case,
  .xrt-sol-case__img--icon svg,
  .xrt-sol-benefit,
  .xrt-sol-benefit__icon {
    transition: none;
  }
}

/* ---------------------------------------------------------------------- */
/* H1 typewriter effect. Same JS-must-succeed safety model as .xrt-reveal: */
/* the H1's full text is always server-rendered; JS only clears and        */
/* retypes it if it runs successfully, so no-JS/failed-JS just shows the   */
/* complete heading immediately, exactly as before.                        */
/* ---------------------------------------------------------------------- */

.xrt-typing-caret {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 3px;
  vertical-align: -0.1em;
  background: var(--xrt-lime);
  animation: xrt-caret-blink 0.9s step-end infinite;
}

@keyframes xrt-caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .xrt-typing-caret {
    animation: none;
  }
}
