/* ─── Global Styles ─────────────────────────────── */
body {
  font-family: "Proxima Nova", sans-serif;
  margin: 0;
  line-height: 1.5;
  color: #ffffff;
  /* previous OFF WHITE background-color: #f2f0f0;*/
  background-color: #0051bf;
}

/* ─── Header ─────────────────────────────────────── */
header {
  font-family: "Proxima Nova", sans-serif;
  background: #0051bf;
  color: white;
  text-align: center;
  padding: 1rem 9rem;
  align-items: center;
}
/* ─── Header Banner Logo ─────────────────────────────── */
#header-banner {
  width: 100%;
  display: flex;            /* enables centering */
  justify-content: center;  /* centers horizontally */
  margin: 0 auto;
  overflow: hidden;
  background-color: #0051bf;   /* optional: prevents white gap before image loads */
}

#header-banner img {
  display: block;
  max-width: 1000px;        /* sets a nice visual width */
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;  /* centers image subject */
}
h1 {
  font-family: "Proxima Nova", sans-serif;
  margin-bottom: 0rem;
}
h2 {
  font-family: "Proxima Nova", sans-serif;
  margin-bottom: 0rem;
  font-size: 4.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-btn {
  display:block;
  background: white;
  color: #0077b6;
  padding: 1.618rem 0rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  align-items: center;
}

.cta-btn:hover {
  background: #f1caf8;
  color: #ffffff
}

/* ─── Section Layout ─────────────────────────────── */
section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
/* ─── Welcome Banner ─────────────────────────────── */
#welcome-banner {
  width: 100%;
  display: flex;            /* enables centering */
  justify-content: center;  /* centers horizontally */
  margin: 0 auto;
  overflow: hidden;
  background-color: #0051bf;   /* optional: prevents white gap before image loads */
}

#welcome-banner img {
  display: block;
  max-width: 2000px;        /* sets a nice visual width */
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;  /* centers image subject */
}
/* ─── Services Grid ──────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service {
  background: #0f20bd;
  border-radius: 8px;
  padding: 0rem;
}


ul {
  list-style: none;        /* removes bullet points */
  margin: 0 auto;   
  font-size: 2.2rem;       /* centers the <ul> block */
  font-weight: bolder;
  padding: 0;              /* removes default padding */
  text-align: center;      /* centers the text */
  width: fit-content;      /* keeps list compactly centered */
}

ul li {
  margin: 0rem 0;        /* adds spacing between lines */
  line-height: 1.5;        /* improves readability */
}

/* ─── Services ──────────────────────────────── */
#services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}


/* ─── Gallery Grid ───────────────────────────────── */
.gallery-grid {
  display: grid;
  background-color: #0051bf;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
}
.before-after-container {
  position: relative;
  width: 100%;
  max-width: 200px;
  height: 300px;
  margin: 1rem auto;
  overflow: hidden;
  border-radius: 12px;
  cursor: ew-resize;
}

.before-after-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

/* hide right side of the after image by masking instead of clipping */
.before-after-container .after {
  -webkit-mask-image: linear-gradient(to right, black 50%, transparent 50%);
  mask-image: linear-gradient(to right, black 50%, transparent 50%);
  -webkit-mask-size: 200% 100%;
  mask-size: 200% 100%;
  -webkit-mask-position: left;
  mask-position: left;
  transition: -webkit-mask-position 0.1s linear, mask-position 0.1s linear;
  z-index: 2;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: rgba(255,255,255,0.9);
  border-left: 1px solid rgba(0,0,0,0.3);
  border-right: 1px solid rgba(0,0,0,0.3);
  cursor: ew-resize;
  z-index: 3;
}
.ba-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  margin: 2rem auto;
  width: 90%;
  max-width: 1000px;
}
.before-after-container .before { z-index: 1; }

.caption {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-top: 10px;
}
.before-after-container .before {
  z-index: 1;
}
.before-after-container .after {
  z-index: 2;
}
.slider-handle {
  z-index: 3;
}
.before-after-container img {
  pointer-events: none;
}
.slider-handle {
  pointer-events: auto;
}
/* ─── Quote Layout with Image ───────────────────── */
.quote-layout {
  display: flex;
  align-items: center;       /* vertically centers both */
  justify-content: center;   /* horizontally centers within the section */
  gap: 0rem;                 /* space between image and calculator */
  flex-wrap: wrap;           /* stacks them on small screens */
  margin-top: 2rem;
}

.quote-image {
  max-width: 500px;          /* adjust size of your PNG */
  width: 100%;
  height: auto;
  border-radius: 8px;        /* optional, for soft corners */
}

@media (max-width: 1000px) {
  .quote-layout {
    flex-direction: column;
    text-align: center;
  }
  .quote-image {
    max-width: 100%;
  }
}

/* ─── Quote Calculator ───────────────────────────── */
#quote {
  background: #0051bf;
  border-top: 3px solid #ffffff;
  padding: 0rem 0rem;
  border-radius: 0px;
}

.quote-calculator {
  max-width: 333px;
  margin: .5rem auto;
  background: rgb(0, 0, 0);
  padding: 1.5rem;
  border-radius: 33px;
  box-shadow: 0 12px 16px rgba(0,0,0,0.1);
  
}

.quote-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

input, textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 19px;
  font-size: 2rem;
}

input[type="number"] {
  padding: .75rem;
}

button, #calculate-btn {
  align-items: center;
  margin: 1rem;
  background: #0077b6;
  margin-top: 1.5rem;
  color: white;
  border: none;
  padding: .75rem;
  border-radius: 19px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.75rem;
}

button:hover, #calculate-btn:hover {
  align-items: center;
  padding: .75rem;
  background: #f1caf8;

}

#quote-result {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
}

#total-price {
  color: #008dd8;
}

/* ─── Footer ─────────────────────────────────────── */
footer {
  text-align: center;
  padding: 0rem;
  background: #0051bf;
  font-size: 1.5rem;
 
}

.contact-info a {
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 2000px) {
  .banner-wrapper {
    height: 600px;
  }

}
@media (min-width: 900px) {
  .ba-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
  }
  .before-after-container {
    height: 300px; /* adjust for smaller cards on desktop */
  }
}