@font-face {
  font-family: "NeutralSansBold";
  src:
    url("../fonts/NeutralSans-Bold.woff2") format("woff2");
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ManropeRegular";
  src: url("../fonts/Manrope-Regular.woff2") format("woff2");
  font-style: normal;
  font-display: swap;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 15px 50px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 100;
  background: transparent;
}

.header-left {
  justify-self: start;
}

.site-logo {
  justify-self: center;
}

.header-right {
  justify-self: end;
  display: flex;
  gap: 40px;
}

.site-logo-link svg {
  width: 300px;
  height: auto;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #0073aa;
}

/* Hamburger icon: hidden by default, visible on mobile */
.hamburger {
  display: none;
  position: absolute;
  top: 25px;
  right: 25px;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 200;
}
.hamburger:focus {
  outline: none;
}
.hamburger .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
}

/* --------------- Mobile Menu Panel --------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -260px;            /* start off-screen */
  width: 260px;
  height: 100%;
  background-color: #fff;
  box-shadow: -4px 0 8px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
}

/* When .mobile-menu has .open, slide it in */
.mobile-menu.open {
  right: 0;
}

/* Close button (×) */
.mobile-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #333;
  align-self: flex-end;
  padding: 0 20px;
  cursor: pointer;
}
.mobile-close:focus {
  outline: none;
}

/* Links inside mobile menu */
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  gap: 20px;
  align-items: center;
}
.mobile-nav-link {
  color: #333;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.mobile-nav-link:hover {
  color: #0073aa;
}

/* --------------- Responsive Breakpoint --------------- */
@media (max-width: 767px) {
  /* Hide desktop nav, show hamburger */
  .site-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* Make sure html and body fill the viewport */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
  font-family: "ManropeRegular";
}

h1, h2, h3, strong {
  font-family: "NeutralSansBold";
}

.menu-item {
    color: #333;
    text-decoration: none;
}

.menu-item:hover {
    text-decoration: underline;
}

.savings-calculator-menu-link {
  align-self: flex-end;
  flex-direction: row;
}

.privacy-policy {
  justify-self:center;
}

.terms-of-service {
  justify-self: center;
  padding-bottom: 30px;
}

.hero-text {
    width: 35%;
    height: 70%;
    justify-content: space-between;
    align-items: center;
    padding: 60px 20px;
    gap: 40px;
    max-width: 500px;
}

.hero-header {
  font-size: 2.5rem;
}

/**Form**/

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-container {
  width: 85%;
  max-width: 900px;
  height: 100%;
  background: white;
  border: 2px solid #ddd;
  border-radius: 30px;
}

.form-header {
  margin-bottom: 20px;
  margin-left: 10px;
  margin-right: 10px;
  text-align: center;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  justify-items: center;
}

.card {
  width: 90%;
  height: 150px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  /* hover effect */
  transition: 
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.card-icon {
  width: 50%;
  height: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -75%);
}

.card-title {
  margin-bottom: 8px;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  text-align: center;
}

/* Hover state */
.card:hover {
  border-color: #0073aa;
  box-shadow: 0 8px 20px rgba(0, 115, 170, 0.2);
  transform: translateY(-3px);
}

.site-footer {
  display: flex;
  gap: 30px;
  justify-content: center;
  padding: 20px 0;
}

.footer-link {
  color: black;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-link:hover {
  text-decoration: underline;
}

.youtube-link {
  color: black;
}

.youtube-link:hover {
  color: #FF0000;
}

.spotify-link {
  color: black;
}

.spotify-link:hover {
  color: #1DB954;
}

.facebook-link {
  color: black;
}

.facebook-link:hover {
  color: #1877F2;
}

.pinterest-link {
  color: black;
}

.pinterest-link:hover {
  color: #E60023;
}

.instagram-link {
  color: black;
}

.instagram-link:hover {
  color: #A94F89;
}

.threads-link {
  color: black;
}

.threads-link:hover {
  color: gray;
}

.linkedin-link {
  color: black;
}

.linkedin-link:hover {
  color: #0077B5;
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 10px;
  max-width: 1500px;
}

@media (min-width: 768px) {
  .hero-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
  .hero-content,
  .hero-form {
    flex: 1;
    max-width: 500px;
  }
  /* Ensure mobile menu is always hidden on desktop */
  .mobile-menu {
    display: none;
  }
  .cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    justify-items: center;
  }
}

@media (max-width: 767px) {
  .hero-text {
    width: 90%;
    text-align: center;
    padding-top: 0px;
    padding-bottom: 0px;
  }
  .hero-subheadline {
    display: none;
  }
  .hero-form {
    width: 100%;
    padding: 20px 10px;
  }

  .site-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    position: relative;
  }

  .site-logo-link svg {
    max-width: 220px;
    padding-top: 5px;
  }
  .header-left {
    display: none;
  }
  .header-right {
    display: none;
  }
}

.grid-background {
  background-image: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none">\
  <defs>\
    <pattern id="smallGrid" width="20" height="20" patternUnits="userSpaceOnUse">\
      <path d="M20 0 L0 0 0 20" fill="none" stroke="%23ccc" stroke-width="0.5" stroke-opacity="0.5"/>\
    </pattern>\
    <pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse">\
      <rect width="100" height="100" fill="url(%23smallGrid)"/>\
    </pattern>\
    <mask id="fadeMask">\
      <linearGradient id="fadeGradient" x1="0%" y1="0%" x2="100%" y2="0%">\
        <stop offset="0%" stop-color="white" stop-opacity="0"/>\
        <stop offset="10%" stop-color="white" stop-opacity="1"/>\
        <stop offset="90%" stop-color="white" stop-opacity="1"/>\
        <stop offset="100%" stop-color="white" stop-opacity="0"/>\
      </linearGradient>\
      <rect width="100%" height="100%" fill="url(%23fadeGradient)"/>\
    </mask>\
  </defs>\
  <rect width="100%" height="100%" fill="url(%23grid)" mask="url(%23fadeMask)"/>\
</svg>');
  background-repeat: repeat;
  background-attachment: fixed;
}
