:root {
  --green: #007A4D;
  --gold: #F9A818;
  --red: #E23D28;
  --blue: #002395;
  --ivory: #FAF9F6;
  --black: #000000;
  --white: #ffffff;
  --gray: #555555;
}


/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", sans-serif;
  background: var(--ivory);
  color: var(--black);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  text-decoration: none;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}


/* =========================
   HEADER
========================= */

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e8e8e8;

  position: sticky;
  top: 0;

  z-index: 1000;

  backdrop-filter: blur(10px);
}

.nav-container {
  min-height: 88px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.header-logo {
  width: 145px;
  height: 70px;

  object-fit: contain;

  transition: transform 0.2s ease;
}

.logo-link:hover .header-logo {
  transform: scale(1.03);
}

.main-nav {
  display: flex;
  align-items: center;

  gap: 30px;
}

.main-nav a {
  position: relative;

  font-family: "Montserrat", sans-serif;

  font-size: 13px;
  font-weight: 900;

  text-transform: uppercase;

  letter-spacing: 1px;

  color: var(--black);

  padding: 10px 0;

  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 3px;

  width: 0;
  height: 3px;

  border-radius: 20px;

  background: var(--green);

  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: var(--green);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--green);
}


/* =========================
   LABEL
========================= */

.section-label {
  display: inline-block;

  font-family: "Montserrat", sans-serif;

  font-size: 13px;
  font-weight: 900;

  letter-spacing: 3px;

  color: var(--green);

  margin-bottom: 18px;
}


/* =========================
   HOME STORY
========================= */

.story-section {
  background: var(--white);

  padding: 95px 0 85px;
}

.story-inner {
  max-width: 900px;
}

.story-section h1 {
  font-family: "Montserrat", sans-serif;

  font-size: clamp(54px, 8vw, 100px);

  font-weight: 900;

  line-height: 0.95;

  letter-spacing: -4px;

  margin-bottom: 38px;
}

.story-copy {
  max-width: 780px;
}

.story-copy p {
  font-size: 19px;

  line-height: 1.75;

  color: #444444;

  margin-bottom: 18px;
}

.story-copy strong {
  color: var(--green);

  font-weight: 900;
}


/* =========================
   CHOICE INTRO
========================= */

.choice-intro {
  padding: 80px 0 45px;

  background: var(--ivory);
}

.choice-intro-inner {
  max-width: 900px;
}

.choice-intro h2 {
  font-family: "Montserrat", sans-serif;

  font-size: clamp(42px, 6vw, 70px);

  font-weight: 900;

  line-height: 1;

  letter-spacing: -2px;

  margin-bottom: 20px;
}

.choice-intro p {
  font-size: 20px;

  color: var(--gray);
}


/* =========================
   DYNAMIC LOGO
========================= */

.gateway-logo-section {
  background: var(--ivory);

  padding: 10px 0 25px;
}

.gateway-logo-area {
  position: relative;

  width: 260px;
  height: 180px;

  margin: 0 auto;
}

.gateway-logo {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.civic-logo,
.ims-logo {
  opacity: 0;

  transform: scale(0.96);
}


/* =========================
   GATEWAY SPLIT
========================= */

.gateway-section {
  padding: 0 0 100px;

  background: var(--ivory);
}

.gateway-split {
  display: grid;

  grid-template-columns: 1fr 1fr;

  min-height: 590px;

  border-radius: 20px;

  overflow: hidden;

  box-shadow:
    0 20px 60px
    rgba(0, 0, 0, 0.14);
}

.gateway-panel {
  position: relative;

  padding: 58px 48px;

  color: var(--white);

  overflow: hidden;

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.civic-panel {
  background:
    linear-gradient(
      145deg,
      #002395,
      #00185f
    );
}

.ims-panel {
  background:
    linear-gradient(
      145deg,
      #007A4D,
      #005c3a
    );
}

.gateway-panel:hover {
  filter: brightness(1.06);
}

.gateway-number {
  position: absolute;

  top: 8px;
  right: 24px;

  font-family: "Montserrat", sans-serif;

  font-size: 120px;
  font-weight: 900;

  line-height: 1;

  color: rgba(255, 255, 255, 0.08);
}

.gateway-label {
  position: relative;

  z-index: 2;

  display: block;

  font-family: "Montserrat", sans-serif;

  font-size: 13px;
  font-weight: 900;

  letter-spacing: 3px;

  margin-bottom: 60px;
}

.gateway-panel h2 {
  position: relative;

  z-index: 2;

  font-family: "Montserrat", sans-serif;

  font-size: clamp(42px, 5vw, 68px);

  font-weight: 900;

  line-height: 0.95;

  color: var(--white);

  letter-spacing: -2px;

  margin-bottom: 28px;
}

.gateway-panel p {
  position: relative;

  z-index: 2;

  max-width: 420px;

  font-size: 18px;

  line-height: 1.65;

  margin-bottom: 24px;
}

.feature-list {
  position: relative;

  z-index: 2;

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 34px;
}

.feature-list span {
  padding: 7px 12px;

  border: 1px solid rgba(255,255,255,0.35);

  border-radius: 999px;

  font-family: "Montserrat", sans-serif;

  font-size: 11px;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.5px;
}

.gateway-button {
  position: relative;

  z-index: 2;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 15px 25px;

  background: var(--white);

  color: var(--black);

  border-radius: 999px;

  font-family: "Montserrat", sans-serif;

  font-size: 14px;

  font-weight: 900;

  box-shadow:
    0 8px 22px
    rgba(0,0,0,0.16);

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.gateway-panel:hover .gateway-button {
  background: var(--gold);

  transform: translateY(-3px);

  box-shadow:
    0 12px 28px
    rgba(0,0,0,0.22);
}


/* =========================
   HOVER LOGO SWITCHING
========================= */

body:has(.civic-panel:hover)
.civic-logo {
  opacity: 1;

  transform: scale(1.06);
}

body:has(.civic-panel:hover)
.ims-logo {
  opacity: 0;

  transform: scale(0.96);
}

body:has(.ims-panel:hover)
.civic-logo {
  opacity: 0;

  transform: scale(0.96);
}

body:has(.ims-panel:hover)
.ims-logo {
  opacity: 1;

  transform: scale(1.06);
}


/* =========================
   ABOUT PAGE HERO
========================= */

.about-hero {
  background: var(--white);

  padding: 100px 0 85px;
}

.about-hero-inner {
  max-width: 950px;
}

.about-hero h1 {
  font-family: "Montserrat", sans-serif;

  font-size: clamp(50px, 7vw, 90px);

  font-weight: 900;

  line-height: 0.95;

  letter-spacing: -4px;

  margin-bottom: 30px;
}

.about-hero p {
  max-width: 760px;

  font-size: 20px;

  line-height: 1.7;

  color: #555555;
}


/* =========================
   ABOUT PLATFORM CARDS
========================= */

.about-platforms {
  padding: 85px 0;

  background: var(--ivory);
}

.about-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 28px;
}

.about-card {
  min-height: 560px;

  padding: 50px;

  border-radius: 20px;

  color: var(--white);

  position: relative;

  overflow: hidden;

  display: flex;

  flex-direction: column;

  align-items: flex-start;
}

.civic-about-card {
  background:
    linear-gradient(
      145deg,
      #002395,
      #00185f
    );
}

.ims-about-card {
  background:
    linear-gradient(
      145deg,
      #007A4D,
      #005c3a
    );
}

.about-card-logo {
  width: 180px;

  height: 130px;

  object-fit: contain;

  background: var(--white);

  padding: 12px;

  border-radius: 14px;

  margin-bottom: 35px;
}

.about-card-label {
  font-family: "Montserrat", sans-serif;

  font-size: 12px;

  font-weight: 900;

  letter-spacing: 2.5px;

  margin-bottom: 14px;
}

.about-card h2 {
  font-family: "Montserrat", sans-serif;

  font-size: clamp(36px, 4vw, 54px);

  line-height: 1;

  font-weight: 900;

  margin-bottom: 24px;
}

.about-card p {
  font-size: 18px;

  line-height: 1.7;

  max-width: 440px;

  margin-bottom: 32px;
}

.about-button {
  margin-top: auto;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 14px 24px;

  border-radius: 999px;

  background: var(--white);

  color: var(--black);

  font-family: "Montserrat", sans-serif;

  font-size: 13px;

  font-weight: 900;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.about-button:hover {
  background: var(--gold);

  transform: translateY(-3px);
}


/* =========================
   ABOUT PURPOSE
========================= */

.about-purpose {
  background: var(--white);

  padding: 95px 0;
}

.purpose-inner {
  max-width: 850px;
}

.about-purpose h2 {
  font-family: "Montserrat", sans-serif;

  font-size: clamp(42px, 6vw, 70px);

  line-height: 1;

  font-weight: 900;

  letter-spacing: -2px;

  margin-bottom: 25px;
}

.about-purpose p {
  max-width: 720px;

  font-size: 19px;

  line-height: 1.75;

  color: #555555;

  margin-bottom: 30px;
}

.back-home-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 14px 24px;

  background: var(--green);

  color: var(--white);

  border-radius: 999px;

  font-family: "Montserrat", sans-serif;

  font-size: 13px;

  font-weight: 900;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.back-home-button:hover {
  background: var(--blue);

  transform: translateY(-3px);
}


/* =========================
   CONTACT PAGE HERO
========================= */

.contact-hero {
  background: var(--white);

  padding: 100px 0 85px;
}

.contact-hero-inner {
  max-width: 900px;
}

.contact-hero h1 {
  font-family: "Montserrat", sans-serif;

  font-size: clamp(50px, 7vw, 90px);

  font-weight: 900;

  line-height: 0.95;

  letter-spacing: -4px;

  margin-bottom: 30px;
}

.contact-hero p {
  max-width: 720px;

  font-size: 20px;

  line-height: 1.7;

  color: #555555;
}


/* =========================
   CONTACT OPTIONS
========================= */

.contact-options {
  padding: 85px 0;

  background: var(--ivory);
}

.contact-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 28px;
}

.contact-card {
  position: relative;

  min-height: 500px;

  padding: 50px;

  border-radius: 20px;

  color: var(--white);

  overflow: hidden;

  display: flex;

  flex-direction: column;

  align-items: flex-start;
}

.civic-contact-card {
  background:
    linear-gradient(
      145deg,
      #002395,
      #00185f
    );
}

.ims-contact-card {
  background:
    linear-gradient(
      145deg,
      #007A4D,
      #005c3a
    );
}

.contact-number {
  position: absolute;

  top: 8px;
  right: 22px;

  font-family: "Montserrat", sans-serif;

  font-size: 110px;

  font-weight: 900;

  line-height: 1;

  color: rgba(255,255,255,0.08);
}

.contact-label {
  position: relative;

  z-index: 2;

  font-family: "Montserrat", sans-serif;

  font-size: 12px;

  font-weight: 900;

  letter-spacing: 2.5px;

  margin-bottom: 55px;
}

.contact-card h2 {
  position: relative;

  z-index: 2;

  font-family: "Montserrat", sans-serif;

  font-size: clamp(40px, 4vw, 58px);

  font-weight: 900;

  line-height: 0.95;

  margin-bottom: 25px;
}

.contact-card p {
  position: relative;

  z-index: 2;

  max-width: 430px;

  font-size: 18px;

  line-height: 1.7;

  margin-bottom: 32px;
}

.contact-button {
  position: relative;

  z-index: 2;

  margin-top: auto;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 14px 24px;

  background: var(--white);

  color: var(--black);

  border-radius: 999px;

  font-family: "Montserrat", sans-serif;

  font-size: 13px;

  font-weight: 900;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.contact-button:hover {
  background: var(--gold);

  transform: translateY(-3px);
}


/* =========================
   DIRECT CONTACT
========================= */

.contact-direct {
  background: var(--white);

  padding: 95px 0;
}

.contact-direct-inner {
  max-width: 850px;
}

.contact-direct h2 {
  font-family: "Montserrat", sans-serif;

  font-size: clamp(42px, 6vw, 70px);

  font-weight: 900;

  line-height: 1;

  letter-spacing: -2px;

  margin-bottom: 25px;
}

.contact-direct p {
  font-size: 19px;

  line-height: 1.7;

  color: #555555;

  margin-bottom: 28px;
}

.email-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 14px 24px;

  background: var(--green);

  color: var(--white);

  border-radius: 999px;

  font-family: "Montserrat", sans-serif;

  font-size: 14px;

  font-weight: 900;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.email-button:hover {
  background: var(--blue);

  transform: translateY(-3px);
}


/* =========================
   FOOTER
========================= */

.site-footer {
  background: #111111;

  color: var(--white);

  padding: 65px 0 25px;
}

.footer-grid {
  display: grid;

  grid-template-columns: 1.5fr 1fr;

  gap: 40px;

  align-items: start;
}

.footer-brand h3 {
  font-family: "Montserrat", sans-serif;

  font-size: 30px;

  font-weight: 900;

  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 520px;

  color: #cfcfcf;

  font-size: 16px;

  line-height: 1.7;
}

.footer-links {
  display: flex;

  flex-direction: column;

  align-items: flex-end;

  gap: 12px;
}

.footer-links a {
  color: var(--white);

  font-family: "Montserrat", sans-serif;

  font-size: 13px;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 1px;

  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 45px;

  padding-top: 20px;

  border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-bottom p {
  color: #aaaaaa;

  font-size: 13px;
}


/* =========================
   TABLET / MOBILE
========================= */

@media (max-width: 800px) {

  .nav-container {
    min-height: 75px;
  }

  .header-logo {
    width: 115px;

    height: 58px;
  }

  .main-nav {
    gap: 18px;
  }

  .main-nav a {
    font-size: 12px;
  }

  .story-section {
    padding: 70px 0 60px;
  }

  .story-section h1 {
    letter-spacing: -2px;
  }

  .story-copy p {
    font-size: 17px;
  }

  .choice-intro {
    padding: 60px 0 35px;
  }

  .gateway-logo-area {
    width: 210px;

    height: 150px;
  }

  .gateway-split {
    grid-template-columns: 1fr;
  }

  .gateway-panel {
    padding: 44px 28px;
  }

  .gateway-label {
    margin-bottom: 40px;
  }

  .gateway-number {
    font-size: 85px;
  }

  .gateway-panel h2 {
    letter-spacing: -1px;
  }

  .about-hero {
    padding: 70px 0 60px;
  }

  .about-hero h1 {
    letter-spacing: -2px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    min-height: auto;

    padding: 38px 28px;
  }

  .about-card-logo {
    width: 150px;

    height: 110px;
  }

  .about-purpose {
    padding: 70px 0;
  }

  .contact-hero {
    padding: 70px 0 60px;
  }

  .contact-hero h1 {
    letter-spacing: -2px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: auto;

    padding: 40px 28px;
  }

  .contact-number {
    font-size: 85px;
  }

  .contact-label {
    margin-bottom: 40px;
  }

  .contact-direct {
    padding: 70px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    align-items: flex-start;
  }

}


/* =========================
   HEADER MOBILE POLISH
========================= */

@media (max-width: 650px) {

  .nav-container {
    min-height: auto;

    padding-top: 12px;
    padding-bottom: 12px;

    flex-direction: column;

    gap: 8px;
  }

  .header-logo {
    width: 110px;

    height: 55px;
  }

  .main-nav {
    width: 100%;

    justify-content: center;

    gap: 22px;
  }

  .main-nav a {
    font-size: 11px;

    letter-spacing: 0.8px;
  }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

  .container {
    width: 90%;
  }

  .story-section h1 {
    font-size: 50px;
  }

  .choice-intro h2 {
    font-size: 40px;
  }

  .gateway-panel h2 {
    font-size: 40px;
  }

  .gateway-panel p {
    font-size: 16px;
  }

  .gateway-button {
    width: 100%;
  }

  .about-hero h1 {
    font-size: 48px;
  }

  .about-card h2 {
    font-size: 36px;
  }

  .contact-hero h1 {
    font-size: 48px;
  }

  .contact-card h2 {
    font-size: 38px;
  }

}