/* -------------------------------------------------
   Root Variables & Base Styles
------------------------------------------------- */
:root {
  --cyan: #00aeef;
  --blue: #06126a;
  --bright-blue: #0060db;
  --light-blue: #b6ebff;
  --white: #ffffff;
  --gray: #aaa;
  --dark: #222;
  --black: #000;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  margin: 0;
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--white);
}

/* Utility Classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.375;
  margin-top: 0;
}

a {
    color: var(--bright-blue);
    text-decoration: underline;
}

a:hover {
    color: var(--blue);
}

a:focus, button:focus, .btn:focus {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
}


p {
  margin-bottom: 1.2rem;
  color: var(--dark);
}

.lead {
    font-size: 1.25rem;
}

.m-0 {
    margin: 0;
}

.d-flex {
    display: flex;
    flex-wrap: wrap;
}
.align-items-center {
    align-items: center;
}
.justify-content-around {
    justify-content: space-around;
}
.text-center {
    text-align: center;
}

img {
    height: auto;
    image-rendering: crisp-edges;
    max-width: 100%;
    width: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--bright-blue);
  border: 3px solid var(--bright-blue);
  border-radius: 4px;
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  overflow: hidden;
  padding: 0.75rem 1.5rem;
  position: relative;
  text-decoration: none;
  transition: transform 120ms ease;
}

.btn > * {
  position: relative;
  z-index: 2;
}

.btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, var(--blue), var(--blue));
  transform: translateX(-100%);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover,
.btn:focus {
  color: var(--white);
}

.btn:hover::before,
.btn:focus::before {
  transform: translateX(0);
}

.btn.entering::before {
  transform: translateX(0);
}

.btn.exiting::before {
  transform: translateX(100%);
  transition-duration: 420ms;
}

.btn.reset::before {
  transition: none !important;
  transform: translateX(-100%) !important;
}


.skip-to-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--blue);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0 0 6px 0;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.3s ease;
}
.skip-to-link:hover {
    color: var(--white);
    text-decoration: underline;
}
.skip-to-link:focus {
    top: 0;
    outline: 2px solid var(--white);
}

/* -------------------------------------------------
   Header & Navigation
------------------------------------------------- */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #ddd;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

/* LOGO WRAPPER */
.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 200px;
  width: 100%;
}

.logo svg {
  width: 100%;
  height: auto;
  max-width: 280px;
  shape-rendering: crispEdges;
  text-rendering: geometricPrecision;
  image-rendering: optimizeQuality;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.logo img {
    image-rendering: crisp-edges;
}

/* NAVIGATION */
.nav {
  display: none;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  color: var(--dark);
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  background: linear-gradient(0deg, var(--light-blue), var(--light-blue)) no-repeat right bottom / 0 var(--bg-h);
  transition: background-size 350ms;
  --bg-h: 100%;
  padding: .25rem 1.25rem;
  border-radius: 4px;
}

.nav a:hover,
.nav a:focus {
  color: var(--blue);
  background-size: 100% var(--bg-h);
  background-position-x: left;
}

/* HAMBURGER MENU */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 2rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 25px;
  height: 3px;
  background: var(--dark);
  display: block;
  border-radius: 3px;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* ACTIVE STATE FOR MOBILE NAV */
.nav.active {
  display: block;
  position: absolute;
  top: 47px;
  left: 0;
  background: var(--white);
  width: 100%;
  text-align: center;
  border-top: 1px solid #ddd;
}

.nav.active ul {
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

/* -------------------------------------------------
   Hero Section
------------------------------------------------- */
.hero {
  background-image: url(/assets/elections-hero-bkgd-mobile.png);
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 3rem 1rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 50vh;
}

.hero-content {
  max-width: 720px;
  margin: auto;
}

.hero h1 {
  font-size: 10vw;
  font-weight: 800;
  line-height: normal;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero p {
  font-size: 4vw;
  margin-bottom: 2rem;
  color: var(--white);
}

/* -------------------------------------------------
   About Section
------------------------------------------------- */
.about {
  padding: 4rem 1rem;
  background: var(--white);
  text-align: center;
}

.about .container {
    border-top: 1px solid var(--gray);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 4rem 0 2rem;
}

.about h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about p {
  margin: 0 auto;
}

.mission-block {
    margin-bottom: 4rem;
}

.clients-block {
    flex: 0 0 auto;
    width: 100%;
}

.client-logos {
    flex: 0 0 auto;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

/* -------------------------------------------------
   Features Section
------------------------------------------------- */
.features {
  padding: 4rem 1rem 0;
  text-align: center;
  background-color: var(--white);
}

.features h2 {
  font-size: 1.8rem;
  margin-bottom: 0;
}

.tech-grid {
    display: grid;
    gap: 2.5rem;
    margin-bottom: 6rem;
    margin-top: 3rem;
}

.tech-card {
    background: var(--white);
    padding: 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    border-top: 10px solid var(--cyan);
    border-left: 1px solid var(--gray);
    border-right: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tech-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  /* box-shadow: 0 2px 4px rgba(0,0,0,0.05); */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  /* box-shadow: 0 4px 10px rgba(0,0,0,0.1); */
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}


/* -------------------------------------------------
   Contact Section
------------------------------------------------- */
.contact {
  background: var(--light-blue);
  padding: 4rem 1rem;
  text-align: center;
}

.contact h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact p {
  max-width: 700px;
  margin: 0 auto 2rem;
}


.embedded-form-block {
    margin: 0 auto;
    max-width: 640px;
}


/* -------------------------------------------------
   Footer
------------------------------------------------- */
.footer {
  background: var(--blue);
  color: var(--light-blue);
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.875rem;
}

.footer p {
  color: var(--light-blue);
  margin: 0;
}

/* -------------------------------------------------
   Animations
------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------
   Responsive Styles
------------------------------------------------- */

/* Tablets and up */
@media (min-width: 600px) {

  .hero {
    background-image: url(/assets/elections-hero-bkgd.png);
  }
  .hero h1 {
    font-size: 8vw;
  }

  .hero p {
    font-size: 3vw;
  }
}

/* Desktop and up */
@media (min-width: 768px) {
  .hero {
    padding: 4rem 1rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.5rem;
  }
  .nav {
    display: block;
  }

  .nav ul {
    gap: .5rem;
  }

  .nav a {
    font-size: 1rem;
  }

  .nav-toggle {
    display: none;
  }

  .header-content {
    gap: 1rem;
  }

  .logo {
    max-width: 240px;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about,
  .features,
  .contact {
    /* text-align: left; */
  }

  .about p,
  .contact p {
    /* margin-left: 0; */
  }
}

/* Large Screens */
@media (min-width: 1024px) {
    .tech-grid {
        gap: 4rem;
    }
}

@media (min-width: 1200px) {
    body {
        font-size: 1.125rem;
    }

    .hero-content {
        max-width: 880px;
    }
    .hero h1 {
        font-size: 4.5rem;
    }

    .hero p {
        font-size: 1.5rem;
    }
  
    .mission-block {
        flex: 0 0 auto;
        margin-bottom: 0;
        text-align: left;
        padding-right: 4rem;
        width: 66.66666667%;
    }
    
    .clients-block {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
