:root {
  --default-font: "Anek Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font: "Anek Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-font: "Anek Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
  --background-color: #f7f9fb;
  --default-color: #243446;
  --heading-color: #071f35;
  --accent-color: #ec1b2e;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --nav-color: rgba(255, 255, 255, 0.82);
  --nav-hover-color: #ffffff;
  --nav-dropdown-hover-color: #ec1b2e;
  --apco-blue: #0b78bf;
  --apco-navy: #06243a;
  --apco-red: #ec1b2e;
  --apco-line: #dfe7ef;
}

body {
  letter-spacing: 0;
}

.header {
  padding: 14px 0;
}

.header .logo img {
  max-height: 52px;
  margin-right: 0;
}

.scrolled .header {
  --background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(6, 36, 58, 0.08);
}

.navmenu a,
.navmenu a:focus {
  font-weight: 700;
}

.navmenu .portal-link {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  padding: 9px 14px;
}

.scrolled .navmenu .portal-link {
  border-color: rgba(6, 36, 58, 0.18);
}

.apco-hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.apco-hero picture,
.apco-hero picture img,
.apco-hero > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.apco-hero picture img,
.apco-hero > video {
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 20, 34, 0.92) 0%, rgba(4, 20, 34, 0.72) 40%, rgba(4, 20, 34, 0.22) 100%),
    linear-gradient(0deg, rgba(4, 20, 34, 0.25), rgba(4, 20, 34, 0.25));
  z-index: -1;
}

.apco-hero .container {
  z-index: 2;
}

.apco-hero .row {
  align-items: flex-start !important;
  padding-top: clamp(145px, 17vh, 205px);
}

.eyebrow,
.section-kicker,
.section-title span {
  color: var(--apco-red);
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.apco-hero h1 {
  color: #ffffff;
  font-size: clamp(52px, 8vw, 112px);
  font-weight: 800;
  line-height: 0.92;
  margin: 0 0 22px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.apco-hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.45;
  max-width: 760px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-primary-apco,
.btn-secondary-apco {
  align-items: center;
  border-radius: 4px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
}

.btn-primary-apco {
  background: var(--apco-red);
  color: #fff;
}

.btn-primary-apco:hover {
  background: #c91425;
  color: #fff;
}

.btn-secondary-apco {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-secondary-apco:hover {
  background: #fff;
  border-color: #fff;
  color: var(--apco-navy);
}

.section {
  padding: 86px 0;
}

.section-title {
  margin-bottom: 34px;
  padding-bottom: 0;
}

.section-title::before,
.section-title::after,
.section-title h2::before,
.section-title h2::after {
  display: none;
}

.section-title h2,
.split-section h2,
.ops-section h2,
.contact-cta h2 {
  color: var(--heading-color);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: 14px;
}

.section-title p,
.split-section p,
.ops-section p,
.contact-cta p {
  color: #5d6b7a;
  font-size: 18px;
  line-height: 1.65;
  max-width: 760px;
}

.service-band {
  background: #f6f8fb;
}

.service-tile {
  background: #fff;
  border: 1px solid var(--apco-line);
  border-radius: 8px;
  height: 100%;
  padding: 28px;
}

.service-tile i {
  align-items: center;
  background: rgba(11, 120, 191, 0.1);
  border-radius: 6px;
  color: var(--apco-blue);
  display: inline-flex;
  font-size: 25px;
  height: 46px;
  justify-content: center;
  margin-bottom: 22px;
  width: 46px;
}

.service-tile h3 {
  color: var(--apco-navy);
  font-size: 22px;
  font-weight: 800;
}

.service-tile p {
  color: #5d6b7a;
  line-height: 1.55;
  margin-bottom: 0;
}

.feature-photo {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(6, 36, 58, 0.14);
  object-fit: cover;
  width: 100%;
}

.feature-video {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(6, 36, 58, 0.14);
  display: block;
  object-fit: cover;
  width: 100%;
}

.showcase-section {
  background: #ffffff;
}

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

.showcase-card {
  background: #fff;
  border: 1px solid var(--apco-line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(6, 36, 58, 0.08);
  margin: 0;
  min-height: 230px;
  overflow: hidden;
  position: relative;
}

.showcase-card.showcase-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 478px;
}

.showcase-card img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.showcase-card figcaption {
  background: linear-gradient(90deg, rgba(4, 21, 34, 0.88), rgba(4, 21, 34, 0.28));
  bottom: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  left: 0;
  padding: 18px;
  position: absolute;
  right: 0;
}

.check-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.check-list div {
  align-items: flex-start;
  display: flex;
  gap: 12px;
}

.check-list i {
  color: var(--apco-red);
  font-size: 21px;
  line-height: 1.3;
}

.check-list span {
  color: #25384a;
  font-weight: 700;
}

.brand-band {
  background: var(--apco-navy);
}

.brand-band .section-title h2,
.brand-band .section-title p {
  color: #ffffff;
}

.brand-band .section-title p {
  color: rgba(255, 255, 255, 0.78);
}

.brand-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, 1fr);
}

.brand-strip span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  min-height: 96px;
  padding: 28px 18px;
  text-align: center;
}

.brand-logo-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(6, 1fr);
}

.brand-card {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 118px;
  padding: 18px;
}

.brand-logo-img {
  display: block;
  max-height: 72px;
  max-width: 190px;
  object-fit: contain;
  width: 100%;
}

.brand-logo-img.bp-logo {
  max-height: 74px;
}

.brand-logo-img.clark-logo {
  max-height: 82px;
  max-width: 150px;
}

.brand-logo-img.amoco-logo {
  max-height: 78px;
}

.brand-logo-img.mobil-logo {
  max-height: 58px;
}

.brand-logo-img.marathon-logo {
  max-width: 205px;
}

.brand-mark {
  align-items: center;
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  justify-content: center;
  letter-spacing: 0;
  min-height: 62px;
  min-width: 150px;
  position: relative;
  text-transform: uppercase;
}

.brand-mark.marathon {
  background: linear-gradient(135deg, #e31b23 0 50%, #0054a6 50% 100%);
  border-radius: 6px;
  color: #fff;
  font-size: 22px;
  font-style: italic;
  padding: 16px 20px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.brand-mark.clark {
  background: #d71920;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  min-width: 132px;
}

.brand-mark.sunoco {
  background: #ffd324;
  border: 5px solid #0054a6;
  color: #0054a6;
  font-size: 23px;
  transform: rotate(-8deg);
}

.brand-mark.sunoco::before,
.brand-mark.sunoco::after {
  display: none;
}

.brand-mark.bp {
  background:
    radial-gradient(circle at center, #fff35a 0 18%, #8cc63f 19% 38%, transparent 39%),
    radial-gradient(circle at 50% 0%, #009639 0 16%, transparent 17%),
    radial-gradient(circle at 100% 50%, #009639 0 16%, transparent 17%),
    radial-gradient(circle at 50% 100%, #009639 0 16%, transparent 17%),
    radial-gradient(circle at 0% 50%, #009639 0 16%, transparent 17%);
  border-radius: 50%;
  color: #006b3f;
  font-size: 32px;
  min-width: 94px;
  text-transform: none;
  width: 94px;
}

.brand-mark.mobil {
  color: #0054a6;
  font-size: 39px;
  text-transform: none;
}

.brand-mark.mobil span {
  color: #e31b23;
}

.page-hero {
  isolation: isolate;
  min-height: 560px;
  overflow: hidden;
  padding: 170px 0 110px;
  position: relative;
}

.page-hero > img,
.page-hero > video {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.page-hero .hero-shade {
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(46px, 7vw, 86px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 18px;
  max-width: 900px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.48);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 22px;
  line-height: 1.55;
  max-width: 850px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.mission-band {
  background: #ffffff;
}

.statement-card {
  background: #ffffff;
  border: 1px solid var(--apco-line);
  border-radius: 8px;
  height: 100%;
  padding: 34px;
}

.statement-card.dark {
  background: var(--apco-navy);
  border-color: var(--apco-navy);
}

.statement-card h2 {
  color: var(--apco-navy);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.08;
}

.statement-card p {
  color: #5d6b7a;
  font-size: 18px;
  line-height: 1.65;
}

.statement-card.dark h2,
.statement-card.dark p,
.statement-card.dark .check-list span {
  color: #fff;
}

.statement-card.dark p {
  color: rgba(255, 255, 255, 0.82);
}

.choice-tile {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--apco-line);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  height: 100%;
  padding: 22px;
}

.choice-tile i {
  color: var(--apco-red);
  font-size: 24px;
}

.choice-tile span {
  color: var(--apco-navy);
  font-weight: 800;
  line-height: 1.35;
}

.timeline-card {
  background: var(--apco-navy);
  border-radius: 8px;
  color: #fff;
  padding: 32px;
}

.timeline-card h3 {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
}

.timeline-card div {
  border-left: 3px solid var(--apco-red);
  display: grid;
  gap: 4px;
  margin-left: 8px;
  padding: 0 0 24px 18px;
}

.timeline-card div:last-child {
  padding-bottom: 0;
}

.timeline-card strong {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.timeline-card span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.product-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.product-grid div {
  background: #fff;
  border: 1px solid var(--apco-line);
  border-radius: 8px;
  color: var(--apco-navy);
  font-size: 22px;
  font-weight: 800;
  min-height: 92px;
  padding: 24px;
}

.product-grid span {
  color: #687789;
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
  text-transform: uppercase;
}

.ops-section {
  background: #ffffff;
}

.metric-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
}

.metric-row div {
  border-left: 4px solid var(--apco-red);
  padding-left: 14px;
}

.metric-row strong {
  color: var(--apco-blue);
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.metric-row span {
  color: #5d6b7a;
  display: block;
  font-weight: 700;
  margin-top: 7px;
}

.contact-cta {
  background: var(--apco-navy);
}

.contact-cta h2,
.contact-cta p {
  color: #ffffff;
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-methods a {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
}

.contact-methods a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.contact-actions {
  display: inline-grid;
  gap: 12px;
  min-width: 220px;
}

.apco-footer {
  background: #041522;
  color: rgba(255, 255, 255, 0.7);
  padding: 26px 0;
}

.footer-logo {
  align-items: center;
  display: flex;
  gap: 16px;
}

.footer-logo img {
  background: #fff;
  border-radius: 6px;
  max-height: 46px;
  padding: 6px 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.footer-links a:hover {
  color: #ffffff;
}

.scroll-top {
  background: var(--apco-red);
}

@media (max-width: 1199px) {
  .navmenu .portal-link {
    border: 0;
    padding: 10px 20px;
  }
}

@media (max-width: 991px) {
  .brand-strip,
  .brand-logo-grid,
  .product-grid,
  .metric-row,
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-card.showcase-large {
    grid-column: span 2;
    min-height: 380px;
  }
}

@media (max-width: 575px) {
  .apco-hero .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .apco-hero .row {
    padding-top: 110px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(4, 20, 34, 0.95) 0%, rgba(4, 20, 34, 0.72) 68%, rgba(4, 20, 34, 0.42) 100%),
      linear-gradient(0deg, rgba(4, 20, 34, 0.28), rgba(4, 20, 34, 0.28));
  }

  .header .logo img {
    max-height: 42px;
  }

  .section {
    padding: 66px 0;
  }

  .brand-strip,
  .brand-logo-grid,
  .product-grid,
  .metric-row,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card,
  .showcase-card.showcase-large {
    grid-column: auto;
    min-height: 230px;
  }

  .page-hero {
    min-height: 500px;
    padding: 135px 0 80px;
  }

  .page-hero h1 {
    font-size: 44px;
  }

  .page-hero p {
    font-size: 19px;
  }

  .apco-hero h1 {
    font-size: 44px;
    line-height: 1;
  }

  .apco-hero .lead {
    font-size: 20px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 230px;
  }

  .contact-actions {
    display: grid;
    width: 100%;
  }
}
