:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: #12263a;
  background: #f4f7f9;
  --navy: #092b49;
  --navy-dark: #061b2f;
  --blue: #2382b6;
  --red: #e21e2d;
  --muted: #5d6c79;
  --line: #d8e0e6;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  background: #f4f7f9;
  -webkit-font-smoothing: antialiased;
}

.portal-bar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 4.5vw;
  background: #fff;
  border-bottom: 1px solid rgb(9 43 73 / 10%);
}

.portal-logo { display: block; width: 242px; height: auto; }

.portal-label {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--navy);
  font-size: .94rem;
  font-weight: 650;
  letter-spacing: .035em;
}

.portal-label span {
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--red);
}

.hero {
  min-height: 360px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--navy-dark) url("/access-fuels-operations-hero-v30.jpg") center 57% / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(4 24 43 / 97%) 0%, rgb(6 35 61 / 91%) 31%, rgb(6 35 61 / 52%) 58%, rgb(6 35 61 / 12%) 100%);
  content: "";
}

.hero-copy {
  width: min(680px, 82vw);
  position: relative;
  z-index: 1;
  margin-left: 6vw;
}

.eyebrow {
  margin: 0 0 16px;
  color: #8bc5e4;
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.65rem, 4.4vw, 4.15rem);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.04;
}

.hero-summary {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgb(255 255 255 / 91%);
  font-size: 1.25rem;
  line-height: 1.5;
}

.application-section {
  width: min(1440px, 91vw);
  margin: 0 auto;
  padding: 36px 0 42px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.9rem;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.section-heading p { margin: 0; color: var(--muted); font-size: .9rem; }

.apps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.app-link {
  min-height: 268px;
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: 18px;
  padding: 26px 24px 22px;
  overflow: hidden;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 5px 18px rgb(12 38 60 / 6%);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.accent-red { --accent: var(--red); }
.accent-blue { --accent: var(--blue); }

.app-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #edf4f8;
  border-radius: 10px;
}

.app-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-copy strong, .app-copy > span { display: block; }
.app-copy strong { color: var(--navy); font-size: 1.35rem; letter-spacing: -.015em; }
.app-copy > span { margin-top: 9px; color: var(--muted); font-size: .95rem; line-height: 1.5; }

.app-action {
  grid-column: 1 / -1;
  align-self: end;
  margin-top: 24px;
  padding-top: 17px;
  color: #0b65a4;
  border-top: 1px solid #e1e6ea;
  font-size: .9rem;
  font-weight: 750;
  text-align: center;
}

.app-link:hover, .app-link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 15px 32px rgb(8 47 73 / 13%);
}

.app-link:focus-visible { outline: 3px solid #0b65a4; outline-offset: 3px; }

footer {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  color: #687682;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: .82rem;
}

@media (max-width: 1080px) {
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-link { min-height: 230px; }
}

@media (max-width: 700px) {
  .portal-bar { min-height: 72px; padding: 5px 20px; }
  .portal-logo { width: 190px; }
  .portal-label { display: none; }
  .hero { min-height: 300px; background-position: 62% center; }
  .hero::before { background: linear-gradient(90deg, rgb(4 24 43 / 95%) 0%, rgb(6 35 61 / 78%) 72%, rgb(6 35 61 / 35%) 100%); }
  .hero-copy { width: auto; margin: 0 24px; }
  h1 { font-size: 2.65rem; }
  .hero-summary { font-size: 1.05rem; }
  .application-section { width: auto; padding: 28px 20px 36px; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .apps { grid-template-columns: 1fr; }
  .app-link { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-link { transition: none; }
}
