
/* =========================================================
   IREC DIGITAL INFRASTRUCTURE
   Responsive hero + image-based portal showcase
   ========================================================= */

:root {
  --navy: #031328;
  --navy-soft: #061a31;
  --blue-line: rgba(112, 177, 224, 0.17);
  --gold: #ffbb37;
  --text: #f6f8fc;
  --muted: #c3d0e0;
  --blue: #8fc7ff;

  --font: "DM Sans", "Segoe UI", Arial, sans-serif;

  --page-bg: #f3f6fb;
  --card-border: #dce5ef;
  --card-text: #0b1a32;
  --card-muted: #5d6e83;
  --cyan: #20c7e8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}


/* =========================================================
   HEADER — PRESERVED
   ========================================================= */

.site-header {
  min-height: 86px;
  padding: 14px clamp(22px, 3.5vw, 58px);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  background: #031126;
  border-bottom: 1px solid rgba(145, 193, 231, 0.13);

  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 132px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}

.brand > span {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2vw, 31px);
}

.desktop-nav > a:not(.partner-link) {
  color: #d7dfeb;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.site-footer a:hover {
  color: var(--gold);
}

.partner-link {
  border: 1px solid #d99000;
  border-radius: 3px;
  padding: 17px 16px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.partner-link span {
  color: var(--gold);
  font-size: 15px;
  margin-left: 8px;
}

.menu-toggle {
  display: none;
}


/* =========================================================
   HERO — PRESERVED
   ========================================================= */

.di-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-height: 0;
  padding: 45px clamp(28px, 5.6vw, 92px) 0;

  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-rows: 1fr auto;

  column-gap: clamp(18px, 2.4vw, 40px);
  align-items: center;

  background: #031328;
}

.di-hero::before {
  content: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 0 0 42px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.5;
}

.eyebrow > span {
  width: 25px;
  height: 2px;
  background: var(--gold);
  flex: 0 0 auto;
}

.hero-copy h1 {
  margin: 23px 0 25px;
  max-width: 620px;

  font-size: clamp(46px, 4.55vw, 76px);
  line-height: 1.055;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.hero-copy h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero-copy p {
  max-width: 620px;
  margin: 0;

  color: #d9e3ef;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.75;
}

.primary-button {
  margin-top: 27px;
  min-height: 60px;

  display: inline-flex;
  align-items: center;
  gap: 25px;

  padding: 0 21px;
  border: 1px solid #ffbf43;
  border-radius: 3px;

  background: var(--gold);
  color: #06152a;

  font-size: 14px;
  font-weight: 800;

  transition: background 0.18s ease, transform 0.18s ease;
}

.primary-button span {
  font-size: 20px;
  line-height: 1;
}

.primary-button:hover {
  background: #ffd06b;
  transform: translateY(-1px);
}

.hero-visual {
  min-width: 0;
  width: calc(100% + 5vw);
  margin-right: -5vw;

  display: flex;
  justify-content: center;
  align-items: center;

  padding-bottom: 24px;
  background: transparent;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 660px;

  object-fit: contain;
  object-position: center;
}

.hero-footer {
  grid-column: 1 / -1;

  min-height: 78px;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: center;
  gap: 20px;

  border-top: 1px solid rgba(161, 199, 229, 0.2);

  color: #91c7ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-footer span:last-child {
  text-align: right;
}


/* =========================================================
   PORTALS SECTION
   Replaces the basic .platforms and .platform-grid section
   ========================================================= */

.irec-platforms {
  position: relative;
  overflow: hidden;

  padding: 86px clamp(28px, 5.6vw, 92px) 100px;

  color: var(--card-text);
  background:
    radial-gradient(
      ellipse at 8% 0%,
      rgba(88, 155, 224, 0.07),
      transparent 40%
    ),
    #f3f6fb;
}

.irec-platforms__container {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
}

.irec-platforms__heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.irec-platforms__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 0 0 16px;

  color: #3569a8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.5;
}

.irec-platforms__eyebrow > span {
  display: inline-block;
  width: 25px;
  height: 2px;
  background: var(--gold);
  flex: 0 0 auto;
}

.irec-platforms__heading h2 {
  margin: 0 0 15px;

  color: #0b1a32;
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.irec-platforms__heading h2 span {
  color: #3478df;
}

.irec-platforms__intro {
  max-width: 660px;
  margin: 0;

  color: #5c6f88;
  font-size: 15px;
  line-height: 1.75;
}


/* Portal cards layout */

.irec-platforms__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}


/* Individual card */

.platform-card {
  min-width: 0;
  overflow: hidden;
  position: relative;

  display: flex;
  flex-direction: column;

  border: 1px solid var(--card-border);
  border-radius: 8px;

  background: #fff;

  box-shadow: 0 10px 30px rgba(17, 40, 72, 0.045);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: #c3d5e9;
  box-shadow: 0 18px 42px rgba(17, 40, 72, 0.09);
}


/* =========================================================
   PORTAL IMAGE AREA
   ========================================================= */

.platform-card__visuals {
  min-width: 0;
  padding: 12px;

  background: #06172d;
  border-bottom: 1px solid rgba(147, 183, 221, 0.15);
}

.platform-card__main-image {
  display: block;
  width: 100%;
  height: 265px;

  object-fit: cover;
  object-position: center;

  border: 1px solid rgba(137, 181, 226, 0.18);
  border-radius: 4px;

  background: #0a203a;
}

.platform-card__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;

  margin-top: 9px;
}

.platform-card__thumbs img {
  display: block;
  width: 100%;
  height: 88px;

  object-fit: cover;
  object-position: center;

  border: 1px solid rgba(137, 181, 226, 0.2);
  border-radius: 3px;

  background: #0a203a;
}


/* =========================================================
   PORTAL CARD CONTENT
   ========================================================= */

.platform-card__content {
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  padding: 27px 28px 28px;
}

.platform-card__status {
  display: flex;
  align-items: center;
  gap: 9px;

  margin: 0 0 15px;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.5;
}

.platform-card__status::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;

  border-radius: 50%;
}

.platform-card__status--live {
  color: #087f91;
}

.platform-card__status--live::before {
  background: #10b8cc;
  box-shadow: 0 0 0 3px rgba(16, 184, 204, 0.12);
}

.platform-card__status--planned {
  color: #a76b00;
}

.platform-card__status--planned::before {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 187, 55, 0.18);
}

.platform-card__content h3 {
  margin: 0 0 12px;

  color: #0b1a32;
  font-size: clamp(21px, 1.8vw, 27px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.platform-card__description {
  margin: 0 0 23px;

  color: #5d6e83;
  font-size: 14px;
  line-height: 1.75;
}


/* Feature list */

.platform-card__features {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 13px;

  margin: 0 0 27px;
  padding: 0;
  list-style: none;
}

.platform-card__features li {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 11px;

  color: #314761;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.feature-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #d7e5f2;
  border-radius: 5px;

  color: #1686b9;
  background: #f0f7fc;

  font-size: 18px;
  font-weight: 700;
}

.platform-card__features--gold .feature-icon {
  color: #a76b00;
  border-color: #f0dfb9;
  background: #fff8e9;
}


/* Portal action buttons */

.platform-card__button {
  width: 100%;
  min-height: 52px;
  margin-top: auto;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;

  padding: 0 17px;

  border: 1px solid transparent;
  border-radius: 4px;

  font-size: 12px;
  font-weight: 800;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.platform-card__button--cyan {
  color: #fff;
  background: #078fa8;
  border-color: #078fa8;
}

.platform-card__button--cyan:hover {
  background: #06778d;
  border-color: #06778d;
}

.platform-card__button--gold {
  color: #08172d;
  background: var(--gold);
  border-color: var(--gold);
}

.platform-card__button--gold:hover {
  background: #ffd06b;
  border-color: #ffd06b;
}

.platform-card__button > span:first-child {
  font-size: 17px;
}

.platform-card__button .button-arrow {
  margin-left: auto;
  font-size: 22px;
  line-height: 1;
}


/* =========================================================
   FOOTER — PRESERVED
   ========================================================= */

.site-footer {
  padding: 28px clamp(22px, 5.6vw, 92px);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  background: #06132a;
  color: #dce5f1;
}

.footer-brand {
  font-size: 21px;
  font-weight: 800;
}

.footer-brand span {
  margin-left: 13px;
  font-size: 11px;
  font-weight: 400;
  color: #9fb0c7;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 11px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1080px) {
  .site-header {
    padding-inline: 24px;
  }

  .brand-logo {
    width: 112px;
  }

  .brand > span {
    max-width: 210px;
    white-space: normal;
    line-height: 1.25;
  }

  .desktop-nav {
    gap: 14px;
  }

  .desktop-nav > a:not(.partner-link) {
    font-size: 11px;
  }

  .partner-link {
    padding: 14px 11px;
  }

  .di-hero {
    column-gap: 25px;
    padding-top: 38px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 5vw, 60px);
  }

  .platform-card__main-image {
    height: 225px;
  }

  .platform-card__thumbs img {
    height: 72px;
  }

  .platform-card__content {
    padding: 24px;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {
  .site-header {
    min-height: 72px;
    padding: 10px 17px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 88px;
    max-height: 42px;
  }

  .brand > span {
    max-width: 165px;
    font-size: 11px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    width: 42px;
    height: 42px;
    flex: 0 0 auto;

    padding: 10px;

    border: 1px solid rgba(183, 210, 239, 0.4);
    border-radius: 4px;

    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 100%;
    height: 2px;
    background: #f4f7fc;
  }

  .desktop-nav {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    padding: 12px 18px 18px;

    flex-direction: column;
    align-items: stretch;
    gap: 0;

    background: #031126;
    border-bottom: 1px solid rgba(145, 193, 231, 0.18);
  }

  .desktop-nav.is-open {
    display: flex;
  }

  .desktop-nav > a:not(.partner-link) {
    padding: 13px 2px;
    font-size: 13px;
  }

  .partner-link {
    text-align: center;
    margin-top: 7px;
  }

  /* Hero */

  .di-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;

    padding: 34px 22px 0;
    gap: 8px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-copy h1 {
    max-width: 580px;
    margin: 19px 0 17px;

    font-size: clamp(43px, 10vw, 64px);
    line-height: 1.04;
  }

  .hero-copy p {
    font-size: 15px;
    line-height: 1.65;
  }

  .primary-button {
    margin-top: 21px;
    min-height: 52px;
  }

  .hero-visual {
    padding: 0;
    margin: 0 -8px;
    width: calc(100% + 16px);
  }

  .hero-visual img {
    max-height: none;
  }

  .hero-footer {
    min-height: 72px;

    grid-template-columns: 1fr 1fr;
    gap: 13px;

    padding: 15px 0;

    font-size: 9px;
  }

  .hero-footer span:last-child {
    text-align: left;
  }

  /* Portal section */

  .irec-platforms {
    padding: 58px 18px 64px;
  }

  .irec-platforms__heading {
    margin-bottom: 27px;
  }

  .irec-platforms__heading h2 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .irec-platforms__intro {
    font-size: 14px;
  }

  .irec-platforms__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .platform-card {
    border-radius: 6px;
  }

  .platform-card:hover {
    transform: none;
  }

  .platform-card__visuals {
    padding: 9px;
  }

  .platform-card__main-image {
    height: auto;
    aspect-ratio: 1.5 / 1;
  }

  .platform-card__thumbs {
    gap: 6px;
    margin-top: 6px;
  }

  .platform-card__thumbs img {
    height: auto;
    aspect-ratio: 1.45 / 1;
  }

  .platform-card__content {
    padding: 22px 19px 20px;
  }

  .platform-card__content h3 {
    font-size: 23px;
  }

  .platform-card__description {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .platform-card__features {
    gap: 15px 10px;
    margin-bottom: 23px;
  }

  .platform-card__features li {
    font-size: 11px;
    gap: 8px;
  }

  .feature-icon {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
    font-size: 16px;
  }

  .platform-card__button {
    min-height: 49px;
  }

  /* Footer */

  .site-footer {
    padding: 27px 22px;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    gap: 14px 18px;
  }

  .footer-brand span {
    display: block;
    margin: 6px 0 0;
  }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {
  .brand-logo {
    width: 76px;
  }

  .brand > span {
    max-width: 140px;
    font-size: 10px;
  }

  .di-hero {
    padding-inline: 17px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 10.5vw, 44px);
  }

  .irec-platforms {
    padding-inline: 13px;
  }

  .platform-card__content {
    padding-inline: 15px;
  }

  .platform-card__features {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}