/* Transformers Group — proprietary stylesheet */

/* --- 1. Reset & base --- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6, p { margin: 0; }
ul { padding-left: 1.25rem; margin: 0 0 1rem; }

/* --- 2. Tokens --- */
:root {
  --c-white: #ffffff;
  --c-black: #000000;
  --c-navy: #151839;
  --c-navy-soft: rgba(5, 0, 56, 0.6);
  --c-blue: #086dfd;
  --c-red: #f45f5b;
  --c-green: #23de91;
  --c-text: var(--c-navy);

  --font-display: 'Funnel Display', 'Poppins', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
  --font-mono: 'Inconsolata', ui-monospace, Menlo, monospace;

  --radius: 8px;
  --radius-lg: 16px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  --max-xs: 892px;
  --max-sm: 1025px;
  --max-md: 1120px;
  --max-lg: 1194px;
}

/* --- 3. Layout primitives --- */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.container--xs { max-width: calc(var(--max-xs) + 40px); }
.container--sm { max-width: calc(var(--max-sm) + 40px); }
.container--md { max-width: calc(var(--max-md) + 40px); }
.container--lg { max-width: calc(var(--max-lg) + 40px); }

.section { padding-top: var(--space-5); padding-bottom: var(--space-5); }
.section--tight { padding-top: var(--space-4); padding-bottom: var(--space-4); }

.grid { display: grid; gap: var(--space-2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: center; }

/* --- 4. Typography --- */
.heading-xl,
.heading-lg,
.heading-md {
  font-family: var(--font-display);
  color: var(--c-navy);
  line-height: 1.2;
  font-weight: 800;
  margin: 0;
}
.heading-xl { font-size: 48px; }
.heading-lg { font-size: 40px; }
.heading-md { font-size: 24px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-navy);
}

.lead {
  color: var(--c-navy-soft);
  font-size: 18px;
  margin: 0;
}

.accent { color: var(--c-red); }
.accent-arrow { color: var(--c-red); font-weight: 700; }

/* --- 5. Buttons --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 12px 22px;
  text-decoration: none;
  font-size: 18px;
  color: var(--c-white);
  background: var(--c-navy);
  border: 1px solid var(--c-navy);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
  cursor: pointer;
}
.button:hover { background: var(--c-blue); border-color: var(--c-blue); }
.button--primary { background: var(--c-red); border-color: var(--c-red); }
.button--primary:hover { background: var(--c-navy); border-color: var(--c-navy); }
.button--accent { background: var(--c-blue); border-color: var(--c-blue); }
.button--accent:hover { background: var(--c-navy); border-color: var(--c-navy); }
.button--ghost {
  background: transparent;
  color: var(--c-navy);
  border-color: var(--c-navy);
}
.button--ghost:hover { background: var(--c-navy); color: var(--c-white); }

/* --- 6. Navigation --- */
/* Floating nav (used on the homepage) */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5%;
}
.nav__logo { display: inline-block; max-width: 240px; }
.nav__logo img { width: 100%; height: auto; }
.nav__actions { display: flex; gap: 12px; align-items: center; }

/* Static nav (used on insights + article pages) */
.nav--static {
  position: relative;
  background: var(--c-white);
}
.nav--static .nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px;
}
.nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__link {
  color: var(--c-navy);
  font-weight: 500;
  text-decoration: none;
}
.nav__link:hover { color: var(--c-blue); }

/* --- 7. Hero (homepage) --- */
.hero {
  position: relative;
  background: var(--c-white);
  overflow: hidden;
  padding-top: 110px;
  padding-bottom: 120px;
}
.hero__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 500px;
  pointer-events: none;
  background-image: url("../images/67efc2154e3237fc1487e6a2_hero-corner-green.avif");
  background-repeat: no-repeat;
  background-position: top right;
  background-size: cover;
  z-index: 0;
}
.hero__decoration {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__decoration img {
  width: 100%;
  height: auto;
  display: block;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-md);
  margin: 0 auto;
  padding: 0 5%;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  width: 100%;
}
.hero__copy { max-width: 520px; }
.hero__title { margin-bottom: 20px; color: var(--c-navy); }
.hero__lead { margin: 20px 0; max-width: 450px; }
.hero__cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__image { position: relative; }
.hero__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- 8. Product solutions section --- */
.product-solutions { padding: var(--space-5) 5%; }
.product-solutions__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-4);
}
.product-solutions__intro .heading-xl { text-align: center; padding: 20px 0; }
.product-solutions__intro .lead { text-align: left; }

.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: var(--space-5);
}
.product-row__copy { padding: 24px 0; }
.product-row__copy .heading-xl { margin-bottom: 16px; }
.product-row__copy .lead { white-space: normal; }
.product-row__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

/* --- 9. Sectors slider --- */
.sectors { padding-bottom: var(--space-5); padding-top: var(--space-3); }
.sectors__heading {
  text-align: center;
  margin: 0 auto var(--space-4);
}
.slider {
  position: relative;
  width: 100%;
  max-width: var(--max-sm);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.slider__viewport {
  overflow: hidden;
}
.slider__track {
  display: flex;
  gap: 18px;
  transition: transform .5s ease;
  will-change: transform;
}
.slider__slide {
  position: relative;
  flex: 0 0 calc((100% - 36px) / 3);
  background: var(--c-navy);
  color: var(--c-white);
  border-radius: var(--radius);
  min-height: 350px;
  padding: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.slider__slide-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}
.slider__slide-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 100%;
  flex: 1;
}
.slider__slide-text p + p { margin-top: 8px; }
.slider__slide-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 92px;
  height: 92px;
  pointer-events: none;
  background: var(--c-green);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.slider__slide-image img {
  width: 36px;
  height: 36px;
  position: absolute;
  right: 14px;
  bottom: 14px;
  filter: brightness(0) invert(1) opacity(0.95);
}
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-navy);
  border: 1px solid var(--c-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color .2s ease, color .2s ease;
}
.slider__arrow:hover { background: var(--c-navy); color: var(--c-white); }
.slider__arrow--prev { left: 0; }
.slider__arrow--next { right: 0; }
.slider__arrow svg { width: 16px; height: 16px; }
.slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--c-navy);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background-color .2s ease;
}
.slider__dot.is-active { background: var(--c-navy); }

/* --- 10. Article hero (used on insights + article pages) --- */
.article-hero { padding: 60px 0 40px; }
.article-hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: center;
}
.article-hero__title { color: var(--c-navy); margin-bottom: 16px; }
.article-hero__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(21, 24, 57, 0.08);
}

/* Page heading used at the top of insights.html */
.page-heading {
  text-align: center;
  padding: 40px 20px 0;
}

/* --- 11. Insights list --- */
.insights-list-section {
  background: #eff1f4;
  padding: 60px 0 40px;
}
.insights-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: var(--max-md);
  margin: 0 auto;
}
.insight-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  background: var(--c-white);
  border-radius: var(--radius);
  padding: var(--space-4);
  align-items: center;
}
.insight-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 12px;
  line-height: 1.25;
}
.insight-card__excerpt {
  color: var(--c-navy-soft);
  font-size: 16px;
  margin-bottom: 20px;
}
.insight-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  max-height: 280px;
}

/* --- 12. Article body (rich text) --- */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px;
  color: var(--c-navy);
}
.article-body p { margin: 0 0 1.1em; font-size: 17px; line-height: 1.7; }
.article-body strong { color: var(--c-navy); font-weight: 700; }
.article-body h1,
.article-body h2,
.article-body h3 {
  font-family: var(--font-display);
  color: var(--c-navy);
  margin: 2em 0 0.5em;
  line-height: 1.25;
}
.article-body h1 { font-size: 32px; }
.article-body h2 { font-size: 26px; }
.article-body h3 { font-size: 22px; }
.article-body a { color: var(--c-blue); text-decoration: underline; }
.article-body ul,
.article-body ol { margin: 0 0 1.1em 1.25em; padding: 0; }
.article-body img { border-radius: var(--radius); margin: 1.5em 0; }
.article-body blockquote {
  margin: 1.5em 0;
  padding: 0.75em 1.25em;
  border-left: 4px solid var(--c-red);
  background: rgba(244, 95, 91, 0.05);
  font-style: italic;
}

.article-back {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* --- 12b. Contact section (homepage) --- */
.contact-section {
  background: var(--c-blue);
  color: var(--c-white);
  padding: var(--space-5) 20px;
}
.contact-section__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.contact-section__title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-white);
  margin: 0 0 16px;
}
.contact-section__intro {
  font-size: 18px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.92);
}
.contact-form {
  display: grid;
  gap: 12px;
  text-align: left;
}
.contact-form__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin: 8px 0 6px;
  color: var(--c-white);
}
.contact-form__input {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-navy);
  font-family: inherit;
  font-size: 16px;
}
.contact-form__input:focus {
  outline: 2px solid var(--c-navy);
  outline-offset: 2px;
}
.contact-form__submit {
  margin-top: 16px;
  padding: 14px 28px;
  background: var(--c-navy);
  color: var(--c-white);
  border: 0;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  align-self: center;
  justify-self: center;
  min-width: 140px;
  transition: background-color .25s ease;
}
.contact-form__submit:hover { background: #0b1027; }
.contact-form__status {
  margin-top: 16px;
  font-size: 14px;
  min-height: 1.4em;
  text-align: center;
}

/* --- 13. Footer --- */
.footer {
  background: var(--c-navy);
  color: var(--c-white);
  padding-top: 40px;
}
.footer a { color: var(--c-white); text-decoration: none; }
.footer a:hover { color: rgba(255, 255, 255, 0.7); }

.footer__top {
  max-width: var(--max-lg);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-4);
}
.footer__col-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.footer__contact-item {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  text-decoration: none;
}
.footer__icon { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.footer__memberships { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer__memberships img { width: auto; max-width: 170px; }
.footer__legal { display: flex; flex-direction: column; gap: 8px; }
.footer__legal a { font-size: 14px; }
.footer__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 36px 0;
}
.footer__bottom {
  max-width: var(--max-lg);
  margin: 0 auto;
  padding: 0 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer__social { display: flex; gap: 24px; align-items: center; }
.footer__social img { width: 16px; height: 16px; }
.footer__copyright { display: flex; gap: 8px; font-size: 14px; }
.footer__mark img { width: 26px; height: 26px; object-fit: contain; }

/* --- 14. Utility helpers --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- 15. Responsive --- */
@media (max-width: 991px) {
  .heading-xl { font-size: 40px; }
  .hero { padding-top: 90px; padding-bottom: 80px; }
  .hero__corner { width: 45%; height: 320px; }
  .hero__decoration { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: 100%; }
  .hero__image { margin-top: 24px; }

  .product-row { grid-template-columns: 1fr; gap: var(--space-3); }
  .product-row--reverse > :first-child { order: 2; }

  .article-hero__split { grid-template-columns: 1fr; }
  .insight-card { grid-template-columns: 1fr; }
  .insight-card__image img { max-height: 320px; }

  .footer__top { grid-template-columns: 1fr 1fr; }

  .slider__slide { flex: 0 0 calc((100% - 18px) / 2); min-height: 320px; }

  .contact-section__title { font-size: 32px; }
}

@media (max-width: 767px) {
  .heading-xl { font-size: 36px; text-align: center; }
  .nav { padding: 16px 20px; }
  .nav__logo { max-width: 180px; }

  .hero__corner { width: 60%; height: 200px; }
  .hero__cta-row { justify-content: center; }
  .hero__copy { text-align: center; margin: 0 auto; }
  .hero__title { text-align: center; }
  .hero__lead { text-align: center; margin-left: auto; margin-right: auto; }

  .product-solutions { padding: var(--space-4) 5%; }
  .product-row__copy { padding: 12px 0; text-align: center; }

  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .slider { padding: 0 16px; }
  .slider__track { gap: 14px; }
  .slider__slide { flex: 0 0 100%; }
  .slider__arrow { width: 2.5rem; height: 2.5rem; }

  .contact-section { padding: var(--space-4) 16px; }
  .contact-section__title { font-size: 26px; }

  .article-body p { font-size: 16px; }
  .article-body h1 { font-size: 26px; }
  .article-body h2 { font-size: 22px; }
}
