@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

html, body {
    margin: 0;
    overflow-x: hidden;
    width: 100%;
}

/* =========================
   Shared white top bar
   ========================= */
.app-header{
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,0.06);
}

.app-header-inner{
  max-width:1100px;
  margin:0 auto;
  padding:10px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  position: relative;
}

.app-logo{
  height:34px;
  width:auto;
  display:block;
}

.app-logo-link{ display:inline-flex; align-items:center; }

.app-nav{
  display:flex;
  align-items:center;
  gap:26px;
}

.app-nav a{
  font-family:'Montserrat', sans-serif;
  font-weight:900;
  font-size:16px;
  text-decoration:none;
  color:#111;
  opacity:0.85;
}

.app-nav a:hover{ opacity:1; }

.nav-divider {
  color: #999;
  font-weight: 300;
  font-size: 15px;
  user-select: none;
  pointer-events: none;
}

.app-nav-center{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* Ensure it's truly centered by removing it from flexbox flow */
  flex: 0 0 auto;
}

.app-right{
  display:flex;
  align-items:center;
  gap:12px;
}

.app-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:999px;
  font-family:'Montserrat', sans-serif;
  font-weight:900;
  font-size:13px;
  text-decoration:none;
  border:1px solid rgba(0,0,0,0.08);
  background:#f3f4f6;
  color:#111;
}

.app-btn.primary{
  background:#6AB8FF;
  border-color:transparent;
  color:#000;
}

/* Full-screen background image for the header */
#containerHeader {
    background-size: cover;
    background-position: center;
    max-height: 62vh;
    min-height: 520px;
    height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: backgroundSlide 25s infinite;
    padding: 30px 20px;
    box-sizing: border-box;
    width: 100%;
}

/* Keyframes for background image transition */
@keyframes backgroundSlide {
    0% {
        background-image: url('./Images/Background1.jpg');
    }
    50% {
        background-image: url('./Images/Background2.jpg'); /* Change this to your second image path */
    }
    100% {
        background-image: url('./Images/Background1.jpg');
    }
}

/* Dark overlay for better text contrast */
#containerHeader::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25); /* Semi-transparent overlay */
    z-index: -1; /* Keeps it behind header content */
}

/* Logo and Hamburger container */
.logo-menu-container {
    display: flex;
    align-items: center; /* Center-align logo and hamburger icon */
    gap: 15px; /* Space between logo and hamburger icon */
}

/* Logo styling */
#logo {
    width: 140px;
    background-color: transparent;
    margin-left: 20px; /* Consistent spacing from the left edge */
    margin-top: 10px; /* Matches the top gap of the "Log-In" and "Sign-Up" buttons */
}
/* Navigation links */
#containerHeader nav {
    display: flex;
    gap: 125px;
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    padding-top: 10px;
}

.navText {
    text-decoration: none;
    color: white;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
    transition: color 0.3s;
}

.navText::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #6AB8FF;
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.3s;
}

.navText:hover {
    color: #ffffff;
}

.navText:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Log-In and Sign-Up Buttons Container */
#bothbuttons {
    display: flex;
    gap: 15px;
    padding-top: 10px;
    margin-right: 20px; /* Consistent spacing from the right edge */
}

#signIn {
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px 10px;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    text-align: center;
}

.button a {
    color: #000000;
    text-decoration: none;
}

#Register {
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px 10px;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    text-align: center;
}

/* Centering the quote section */
#Quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90%;
  max-width: 620px;
  padding: 32px 28px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 30px 60px rgba(0,0,0,0.55);
  box-sizing: border-box;
}

#Quote h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #ffffff;
}

#Quote p {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 26px;
  max-width: 520px;
}

/* CTA button styling */
.button2 {
  background: none;
}

#GetAQuoteNow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  display: inline-block;
  background: #6AB8FF;
  color: #000;
  font-size: 22px;
  padding: 18px 36px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 25px rgba(106,184,255,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


#GetAQuoteNow:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(106,184,255,0.6);
}

.button2 a {
    color: #000000;
    text-decoration: none;
}

/* How It Works Section */
.how-it-works {
    padding: 20px 20px;
    background-color: #f4f4f4; /* Light gray background for contrast */
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.how-it-works h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    width: 100%;
}

.steps-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    flex: 1;
    margin: 10px;
    transition: transform 0.3s ease;
    position: relative;
}

.step-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #666;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-first {
    box-shadow: 0px 4px 15px rgba(106, 184, 255, 0.15);
}

.step-first .step-badge {
    background-color: #6AB8FF;
    color: white;
}

.step:hover {
    transform: translateY(-10px);
}

.step h3 {
    font-size: 1.8em;
    color: #6AB8FF;
    margin-bottom: 10px;
}

.step p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

/* Customer Reviews Section */
.customer-reviews {
    padding: 20px 20px 40px;
    background-color: #f8f8f8;
    text-align: center;
}

.customer-reviews h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 40px;
    font-family: 'Montserrat', sans-serif;
}

.carousel {
    position: relative;
    max-width: 900px;
    margin: auto;
    overflow: visible;
    padding: 10px 0 20px;
}

.carousel-group {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.carousel-item {
    background-color: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 280px;
    flex: 1;
    text-align: center;
    transition: all 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-5px);
    border-color: #6AB8FF;
    box-shadow: 0px 6px 20px rgba(106, 184, 255, 0.2);
}

/* Review text - Line 1 */
.review-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    color: #111;
    line-height: 1.5;
    margin-bottom: 14px;
}

/* Savings amount - Line 2 */
.review-savings {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3em;
    font-weight: 800;
    color: #6AB8FF;
    margin-bottom: 12px;
}

/* Customer name - Line 3 */
.reviewer-name {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
    margin-bottom: 6px;
}

/* Review date - Line 4 */
.review-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8em;
    color: #999;
    font-weight: 400;
}

/* =========================
   Mobile header (index only)
   ========================= */
@media (max-width: 768px) {

  .app-header-inner {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    row-gap: 10px;
  }

  /* Logo stays top-left */
  .app-left {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  /* Login / Sign up stays top-right */
  .app-right {
    grid-column: 2 / 3;
    grid-row: 1;
  }

  /* Nav moves to second row and centers */
  .app-nav {
    grid-column: 1 / 3;
    grid-row: 2;

    justify-self: center;
    text-align: center;

    gap: 22px;
    font-size: 15px;
  }

  /* Reset absolute positioning from desktop */
  .app-nav-center {
    position: static;
    transform: none;
  }
}

@media (max-width: 768px) {
  .app-logo {
    height: 24px;
  }
  .app-btn {
    padding: 7px 12px;
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .app-logo {
    height: 20px;
  }
  .app-nav {
    gap: 14px;
    font-size: 13px;
  }
  .app-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
  .app-header-inner {
    padding: 8px 12px;
  }
}
@media (max-width: 768px) {

  /* Hero text box */
  #Quote h1 {
    font-size: 32px;   /* was ~42px */
    line-height: 1.15;
  }

  #Quote p {
    font-size: 14px;   /* was ~17px */
    line-height: 1.5;
  }

}
@media (max-width: 768px) {

  #GetAQuoteNow {
    font-size: 16px;   /* was ~22px */
    padding: 12px 24px;
    border-radius: 999px;
  }

}
@media (max-width: 768px) {

  #Quote {
    width: 92%;
    max-width: 340px;

    padding: 22px 20px;

    border-radius: 18px;
  }

}
@media (max-width: 768px) {

  #Quote h1 {
    margin-bottom: 12px;
  }

  #Quote p {
    margin-bottom: 18px;
  }

}
@media (max-width: 768px) {

  #containerHeader {
    min-height: 50vh;   /* was likely 100vh */
    padding-top: 20px;
    padding-bottom: 20px;
  }

}

@media (max-width: 768px) {

  #containerHeader {
    background-position: center top;
  }

}
@media (max-width: 768px) {

  /* Make sure the section has side padding so cards don't touch edges */
  .how-it-works {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  /* Apply grid to the ACTUAL container */
  .steps-container{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .step{
    padding: 48px 16px 16px !important;
    display: flex;
    flex-direction: column;
    text-align: center;
    overflow: visible;
    aspect-ratio: unset;
    min-height: 0;
  }

  /* Make step 5 span full width and be centered */
  .steps-container .step:nth-child(5){
    grid-column: 1 / -1;
    max-width: 340px;
    justify-self: center;
  }

  .step h2, .step h3 {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
  }

  .step p{
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    overflow: visible;
    -webkit-line-clamp: unset;
  }
}