.navbar {
  background-color: var(--d-green);
}

main {
  background-color: var(--off-white);
  color: black;
  padding-bottom: 80px;
  overflow-x: hidden;
  width: 100%;
  padding-top: 60px;
}

/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #FAFAFA;
}

strong {
  font-weight: 600;
}

h4 {
  font-size: 20px;
}

#header-wrapper {
  position: relative;
  /* Create a positioning context for the pseudo-element */
  padding: 160px 0px;
  padding-top: 20px;
  /* You can set a background gradient or color as a base layer */
  background: linear-gradient(to bottom, #d1e1c2c6, rgba(255, 255, 255, 0.53));
  z-index: 0;
}

/* The pseudo-element for the textured background */
#header-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/texture.jpeg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: .6;
  /* Set the texture to 20% opacity */
  z-index: -1;
  /* Place it behind the content */
}


#header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  column-gap: 100px;
  margin-bottom: 0px;
}

#header-left {
  flex: 1;
}

#header-left h1 {
  font-size: 56px;
  margin-top: 0px;
  margin-bottom: 36px;
}

#header-left p {
  font-size: 12px;
  color: rgb(60, 60, 60);
  max-width: 300px;
  margin-top: 16px;
  transition: color .2s ease, font-weight .2s ease;
}

#header-left p:hover {
  color: black;
  font-weight: 500;
}

#header-a {
  text-decoration: underline;
  color: var(--m-green);
}

#mobile-header-a {
  text-decoration: underline;
  color: var(--m-green);
}

#header h4 {
  flex: 1;
  margin: 0px;
}

#desk-icons {
  display: block;
}

#desk-icons p {
  color: grey;
}

#mobile-icons {
  margin-top: 24px;
  display: none;
}

#mobile-icons p {
  font-size: 12px;
  color: grey;
  max-width: 300px;
  margin-top: 16px;
}

#header-icons {
  margin-top: 24px;
  column-gap: 20px;
}

#header-icons .bi {
  font-size: 30px;
  color: var(--border-grey);
  transition: color .4s ease;
}

#header-icons .bi:hover {
  color: var(--m-blue);
}

#block-text {
  background-color: var(--l-green);
  padding: 80px;
  box-sizing: border-box;
  border-radius: 20px;
  z-index: 0;
  position: relative;
}

#block-text::before {
  content: "";
  position: absolute;
  border-radius: 20px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/CircularTexture2.jpeg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left;
  opacity: .5;
  /* Set the texture to 20% opacity */
  z-index: -1;
  /* Place it behind the content */
}

#block-text-center {
  max-width: 500px;
  flex-direction: column;
  padding: 20px;
}

#lightbulb-wrapper {
  width: 100%;
}

#lightbulb {
  height: 60px;
  min-width: 60px;
  background-color: #ffffff96;
  border-radius: 100px;
  font-size: 24px;
}

#final {
  flex-direction: row;
  column-gap: 100px;
}

#final-left {
  flex: 1;
}

#final-left h1 {
  margin-top: 0px;
  margin-bottom: 24px;
}

#pleasanton {
  height: 500px;
  width: 450px;
  border-radius: 20px;
  object-fit: cover;
}

.content-width {
  margin-top: 160px;
}

/* -- base layout -- */
#testimonials {
  position: relative;
  box-sizing: border-box;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 20px;
  padding: 12px 24px;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  text-align: center;
  box-sizing: border-box;
  padding: 20px;
}

.testimonial-slide.active {
  opacity: 1;
  position: relative;
}

/* -- typography overrides (instead of inline styles) -- */
.testimonial-slide h3 {
  font-size: 30px;
  margin: 0 0 10px;
}

.testimonial-slide h4 {
  margin: 24px;
  margin-bottom: 0px;
}

/* -- nav controls -- */
.testimonial-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
}

.testimonial-nav button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0 15px;
}

.testimonial-nav .dots {
  display: flex;
  gap: 8px;
}

.testimonial-nav .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}

.testimonial-nav .dot.active {
  background: #333;
}

.chevron {
  transition: transform .2s ease, color .2s ease;
}

.chevron:hover {
  color: var(--m-green);
  transform: scale(1.02);
}


#request-form {
    background: linear-gradient(to bottom right, var(--m-green), var(--m-blue));
    height: 100%;
    border-radius: 50px;
    padding: 80px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

#request-form h2 {
  margin-top: 0px;
}

#request-form p {
  margin-top: 0px;
}


/* Keyframes for the slow-moving conic gradient --------------------------- */
@keyframes spin-ring {
    from {
        transform: rotate(-180deg);
    }

    to {
        transform: rotate(180deg);
    }
}

.main-btn {
    /* layout */
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    /* tweak to taste */
    font-weight: 300;

    /* look & feel */
    background: var(--yel);
    color: black;
    border: none;
    border-radius: 100px;
    font: 600 16px/1 var(--mont);
    overflow: hidden;
    /* keep the glow inside the pill */
    cursor: pointer;

    /* motion */
    transition: color .1s ease, transform .2s ease, font-weight .2s ease;
    z-index: 0;
    width: 360px;
    height: 80px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 500;
    margin-top: 24px;
}

.main-btn:hover {
    transform: scale(1.02);
    color: black;
    background: var(--yel);
    font-weight: 600;
}

/* ----------------------------------------------------------------------- */
/*  VIBRANT GRADIENT RING  ( ::before )                                    */
/* ----------------------------------------------------------------------- */
.main-btn::before {
    content: '';
    position: absolute;
    inset: -50%;
    /* make it much larger than btn   */
    background: conic-gradient(white 0%,
            var(--l-green) 20%,
            rgba(255, 255, 255, 0) 25% 360deg);
    /* seamless loop                  */
    border-radius: 50%;
    /* full circle so rotation is smooth */
    animation: spin-ring 8s linear infinite;
    filter: blur(15px);
    /* soft glow                      */
    z-index: -1;
    transition: opacity .4s ease;
    /* lets us “dissipate” on hover   */
}

/* Fade the ring away on hover */
.main-btn:hover::before {
    opacity: 0;
}

/* ----------------------------------------------------------------------- */
/*  INNER MASK  ( ::after )                                                */
/*  Creates a solid fill so only the 2-3 px rim shows the gradient         */
/* ----------------------------------------------------------------------- */
.main-btn::after {
    content: '';
    position: absolute;
    inset: 3px;
    /* width of the rim               */
    background-color: var(--yel);
    border-radius: inherit;
    z-index: -1;
    transition: background-color .4 ease;
}


#zipcode {
  font-weight: 500;
  box-sizing: border-box;
}

.info-text {
  visibility: hidden;
  position: absolute;
  background-color: #f9f9f9;
  color: #333;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  top: -60px;
  right: -140px;
  white-space: wrap;
  z-index: 10;
  font-size: 16px;
  width: 200px;
  cursor: pointer;
  /* Fade effect */
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  font-family: var(--crim);
  /* Prevents interaction when hidden */
  pointer-events: none;
}

.info-icon {
  border: 1px solid white;
  color: white;
}

.info-icon:hover+.info-text,
.info-text:hover {
  visibility: visible;
  /* Use visibility instead of display */
  opacity: 1;
  pointer-events: auto;
  /* Enables interaction when visible */
}


@media (max-width: 980px) {
  .content-width {
    width: calc(95% - 2em);
  }
}

@media only screen and (max-width: 768px) {

  main {
    padding-top: 60px;
  }

  .content-width {
    margin-top: 120px !important;
  }

  #header {
    flex-direction: column;
  }

  #header-icons {
    margin-top: 24px;
    column-gap: 20px;
  }

  #desk-icons {
    display: none;
  }

  #mobile-icons {
    display: block;
  }

  #testimonials {
    margin-top: 90px !important;
  }

  .testimonial-slide {
    padding: 16px 0px;
  }

  .testimonial-slider {
    padding: 12px 0px;
  }

  .testimonial-slide h3 {
    font-size: 24px;
  }

  .testimonial-slide h4 {
    font-size: 20px;
  }

  #block-text {
    background-color: var(--l-green);
    padding: 0px;
    box-sizing: border-box;
    border-radius: 20px;
  }

  #final {
    flex-direction: column-reverse;
    row-gap: 48px;
  }

  #pleasanton {
    height: 500px;
    width: 100%;
  }

  #request-form-input input {
    width: 100%;
  }

  .info-text {
    right: -60px;
  }

  .content-width {
    margin-top: 160px;
  }

  .main-btn {
    width: 100%;
  }

}