/* 415f1c - green icon color */

/* ---------------------------------------
   Root variables (no visual change)
---------------------------------------- */
:root {
  --brand-green: #8cc63f;
  --brand-blue: #2fa4e7;
  --brand-green-deep: #0ba360;
  --brand-green-grad-2: #3cba92;
  --brand-green-grad-3: #30dd8a;
  --brand-green-grad-4: #2bb673;
  --bg-mint: #dff6e2;
  --bg-cream: #f6faef;
  --bg-nav: #f5f8f1;
  --black: #000;
  --white: #fff;
  --gold: gold;

  /* Reusable gradient token */
  --gradient-green: linear-gradient(
    to right,
    var(--brand-green-deep),
    var(--brand-green-grad-2),
    var(--brand-green-grad-3),
    var(--brand-green-grad-4)
  );

  /* Proportional navbar scaling */
  --nav-shrink: 0.7; /* 0.7 = shrink by 30% on scroll */
  --logo-scale: 1; /* live scale (1 when not scrolled) */
  --logo-mobile-base: 100px; /* your current mobile logo height */
  --logo-desktop-base: 140px; /* your current desktop logo height */
  --burger-w-base: 44px; /* your current hamburger width */
  --burger-h-base: 42px; /* your current hamburger height */
}

/* Stabilize layout when scrollbars appear + modern scrollbar styling */
html {
  scrollbar-width: thin;
  /* FIX: spec is space-separated: thumb track */
  scrollbar-color: rgba(140, 198, 63, 1) rgba(255, 255, 255, 0.1);
}
html::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
html::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--brand-green),
    rgba(0, 255, 102, 0.3)
  );
  border-radius: 8px;
}
html::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

/* Basic resets (preserve default list bullets unless classed) */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li {
  margin: 0;
}

body,
html {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  font-family: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Helpful default for media to avoid overflow surprises */
img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

label,
p {
  font-weight: 300;
}

/* Only classed lists have bullets removed */
ul {
  list-style-type: none;
}

a:hover {
  color: var(--brand-green);
}

svg {
  margin-top: -1px;
}

.icon {
  width: 80%;
  height: auto;
}

.round {
  border-radius: 20px;
}

/* ---------------------------------------
   Info Bar Header (Hours & Location)
---------------------------------------- */
header {
  background-color: var(--bg-cream);
}

.phoneNum {
  color: var(--black);
  text-decoration: none;
}

/* ---------------------------------------
   Navigation
---------------------------------------- */
nav img {
  transition: all 0.8s;
}

#mainNav {
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
  transition: all 0.7s;
  background-color: var(--bg-nav);
  padding: 0;
}

/* When scrolled, switch the scale factor only */
#mainNav.is-scrolled {
  --logo-scale: var(--nav-shrink);
}

.navbar {
  position: -webkit-sticky; /* legacy Safari support */
  position: sticky !important;
  top: 0;
  z-index: 1260;
}

.navbar-brand {
  transition: all 0.8s;
  padding: 0;
  margin: 0;
}

/* Logos: scale proportionally (no distortion) */
.mobile-logo {
  height: calc(var(--logo-mobile-base) * var(--logo-scale));
  width: auto;
  transition: height 0.3s ease;
}

.desktop-logo {
  height: calc(var(--logo-desktop-base) * var(--logo-scale));
  width: auto;
  transition: height 0.3s ease;
}

/* Remove Bootstrap’s default gray border on the toggler */
.navbar-toggler {
  padding-right: 30px;
  border: 0; /* kill the 1px border */
  box-shadow: none;
  background: transparent;

  /* Turn off BS variable-driven border/focus ring */
  --bs-navbar-toggler-border-color: transparent;
  --bs-navbar-toggler-focus-width: 0;
}

/* Remove the iOS Safari gray tap highlight */
.navbar-toggler,
.navbar-toggler * {
  -webkit-tap-highlight-color: transparent;
}

/* Keep accessibility: add a clear focus-visible ring */
.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}
.navbar-toggler:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.wrapper-menu {
  width: calc(var(--burger-w-base) * var(--logo-scale));
  height: calc(var(--burger-h-base) * var(--logo-scale));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: width 0.4s ease, height 0.4s ease, transform 430ms ease-out;
}
.wrapper-menu.open {
  transform: rotate(-45deg);
}

.line-menu {
  background-color: var(--black);
  border-radius: 5px;
  width: 100%;
  height: 3px;
}
.line-menu.half {
  width: 50%;
}
.line-menu.start {
  transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
  transform-origin: right;
}
.open .line-menu.start {
  transform: rotate(-90deg) translateX(3px);
}
.line-menu.end {
  align-self: flex-end;
  transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
  transform-origin: left;
}
.open .line-menu.end {
  transform: rotate(-90deg) translateX(-3px);
}

.nav-item {
  margin: 0 20px;
  transition: all 0.8s;
}

.nav-link {
  font-size: 1em;
  letter-spacing: 0.05em;
  color: var(--black);
  position: relative;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 8px;
}
.nav-link:focus,
.nav-link:hover {
  color: var(--brand-blue);
}
.nav-link:before,
.nav-link:after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--brand-green);
}
.nav-link:before {
  opacity: 0;
  transform: translateY(-8px);
  transition: transform 0s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0s;
}
.nav-link:after {
  opacity: 0;
  transform: translateY(4px);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.2s;
}
.nav-link:hover:before,
.nav-link:hover:after,
.nav-link:focus:before,
.nav-link:focus:after {
  opacity: 1;
  transform: translateY(0);
}
.nav-link:hover:before,
.nav-link:focus:before {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.2s;
}
.nav-link:hover:after,
.nav-link:focus:after {
  transition: transform 0s 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0s 0.2s;
}

i.bi.bi-facebook {
  font-size: 44px;
}
.facebook:hover {
  color: #1778f2;
}
.facebook:before,
.facebook:after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--brand-green);
}

/* Keep your custom helper; Bootstrap also provides .visually-hidden */
.visible-hidden {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.visible-hidden:focus {
  clip: auto;
  height: auto;
  overflow: auto;
  position: absolute;
  width: auto;
}

/* Buttons in nav (sizes kept as-is) */
.navBtn {
  width: 175px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  height: 55px;
  text-align: center;
  border: none;
  background-size: 300% 100%;
  border-radius: 50px;
  transition: all 0.4s ease-in-out;
}
.navBtn:hover {
  background-position: 100% 0;
  transition: all 0.4s ease-in-out;
}
.navBtn:focus {
  outline: none;
}

/* Shared focus ring for keyboard users */
.navBtn:focus-visible,
.btn-hover:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* ---------------------------------------
   Hero Image
---------------------------------------- */

/* Reserve hero height without causing mobile UI bar jumps */
#hero-image {
  position: relative;
  min-block-size: 80svh;        /* stable on mobile (ignores URL bar expand) */
  overflow: clip;               /* prevent scrollbars on small jitters */
}

/* Pin the <picture> to fill the hero like a background */
#hero-image picture {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  z-index: 0;
}
#hero-image picture img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Make the <picture> wrapper purely a background layer */
.hero-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Soft dark gradient over the image, under the text */
.hero-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5));
  pointer-events: none;
}

/* Full-height flex wrapper that centers the blur panel + button */
.hero-center{
  position: relative;
  z-index: 1;              /* above the image/gradient */
  min-block-size: inherit; /* match #hero-image reserved height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-inline: 1rem;    /* comfy edges on mobile */
}

/* (Optional, keep your existing hero-text styles) */
/* You can cap width if you want:
.hero-text { max-width: 920px; width: 100%; }
*/

/* Ensure the actual text block sits above the gradient */
.hero-text {
  text-align: center;
  color: var(--white);
  padding: 2rem;
  position: relative;
  z-index: 1;
}
.hero-text h1 {
  font-size: 2em;
  text-transform: uppercase;
  line-height: 1.2em;
}
.hero-text ul {
  display: inline-block;
  padding: 0;
  margin-top: 10px;
}

.blur {
  background: linear-gradient(
    81deg,
    rgba(117, 113, 157, 0.1) 8.33%,
    rgba(4, 3, 18, 0.1) 98.71%
  );
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(117, 113, 157, 0.1);
  border-radius: 20px;
  box-shadow: 0 0 6px 0px rgba(0, 0, 0, 0.1),
    inset 0px 0px 0px 0px rgba(255, 255, 255, 0.5),
    inset 0 0px 0px 0px rgba(255, 255, 255, 0.1),
    inset 0 0 8px 0px rgba(255, 255, 255, 0.1);
}

/* CTA buttons (sizes preserved) */
.btn-hover {
  width: 200px;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  height: 55px;
  text-align: center;
  text-decoration: none;
  border: none;
  background-size: 300% 100%;
  border-radius: 50px;
  transition: all 0.4s ease-in-out;
}
.btn-hover:hover {
  color: var(--white);
  background-position: 100% 0;
  transition: all 0.4s ease-in-out;
}
.btn-hover:focus {
  outline: none;
}

/* ---- New utility for gradient (and deduped existing selectors) ---- */
.u-btn--gradient-green,
.navBtn.green-gradient,
.btn-hover.green-gradient {
  background-image: var(--gradient-green);
  box-shadow: 0 4px 15px 0 rgba(23, 168, 108, 0.75);
}

/* ---------------------------------------
   Get Quote Bar
---------------------------------------- */
#request-quote {
  background-color: var(--bg-cream);
  padding: 50px 0;
}

/* ---------------------------------------
   About Us
---------------------------------------- */
#about-us {
  padding: 80px 0;
}
.quote-box {
  font-size: 22px;
  padding: 25px;
}
.pRound {
  border-radius: 0 20px 20px 0;
}

/* ---------------------------------------
   Services
---------------------------------------- */
#services {
  background-color: var(--bg-mint);
  padding: 80px 0;
  scroll-margin-top: 300px;
}

/* ---------------------------------------
   Why Us
---------------------------------------- */
#why-us {
  padding: 80px 0;
}
#why-us a {
  color: var(--brand-blue);
  text-decoration: none;
}
#why-us a:hover {
  color: var(--brand-green);
  text-decoration: underline;
}
.whyUsIcons {
  width: 15%;
}

/* ---------------------------------------
   Reviews
---------------------------------------- */
#reviews {
  padding: 80px 0;
  scroll-margin-top: 50px;
}
#reviews i {
  color: var(--gold);
}

.bg-gradient-end {
  background-image: linear-gradient(
    0deg,
    hsl(128deg 56% 92%) 0%,
    hsl(142deg 61% 92%) 7%,
    hsl(153deg 64% 92%) 13%,
    hsl(162deg 65% 92%) 18%,
    hsl(169deg 65% 92%) 23%,
    hsl(176deg 64% 93%) 28%,
    hsl(182deg 64% 94%) 33%,
    hsl(187deg 69% 95%) 39%,
    hsl(192deg 71% 95%) 45%,
    hsl(196deg 68% 96%) 52%,
    hsl(201deg 59% 97%) 60%,
    hsl(205deg 42% 97%) 72%,
    hsl(210deg 17% 98%) 100%
  );
}

.review-blur {
  background: transparent;
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 0 6px 0px rgba(0, 0, 0, 0.1),
    inset 0px 0px 0px 0px rgba(255, 255, 255, 0.5),
    inset 0 0px 0px 0px rgba(255, 255, 255, 0.1),
    inset 0 0 8px 0px rgba(255, 255, 255, 0.1);
}

.readMoreBtn {
  text-decoration: none;
  color: var(--brand-blue);
}
.readMoreBtn:hover {
  text-decoration: underline;
  color: var(--brand-green);
}

.reviewer-avi {
  height: 70px;
  border-radius: 50%;
}
.google-review {
  width: 200px;
  max-width: 100%;
}

/* ---------------------------------------
   Footer
---------------------------------------- */
footer {
  background-color: var(--bg-mint);
}
.footerLink {
  color: var(--black);
  text-decoration: none;
}
.footerLink:hover {
  text-decoration: underline;
}
.footer-icons {
  font-size: 44px;
}
.footer-icons > a {
  color: var(--brand-blue);
  text-decoration: none;
}
.footer-icons > a:hover {
  color: var(--brand-green);
}

/* ---------------------------------------
   ++QUOTE PAGE++
---------------------------------------- */
#quote-page {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--white);
}
#quote-page i {
  margin-right: 0.75rem;
}

.navIndex {
  z-index: 1265;
  left: 50%;
  transform: translateX(-50%);
}

.formTitle {
  letter-spacing: 2px;
}
.btmBorder {
  padding-top: 5px;
  margin: auto;
  border-bottom: 1px solid var(--bg-mint);
  width: 97%;
}
.titleBorder {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--bg-mint);
  width: 96.25%;
}

.contactLink {
  color: var(--white);
  text-decoration: none;
}
.contactLink:hover {
  text-decoration: underline;
}

.form-control,
.form-select {
  padding: 0.85rem;
  border: none;
  border-radius: 3px;
}
.form-text {
  color: var(--white);
}

/* ---------- NEW: invalid highlight + subtle shake ---------- */
.invalid-highlight {
  outline: 3px solid #dc3545; /* Bootstrap danger */
  outline-offset: 2px;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
  transition: box-shadow 0.2s ease, outline-color 0.2s ease;
}

/* Ensure our style wins WHILE focused (overrides UA/Bootstrap focus rings) */
.form-control.invalid-highlight:focus,
.form-select.invalid-highlight:focus,
.invalid-highlight:focus {
  outline: none !important;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.35) !important;
  border-color: #dc3545 !important;
}

.shake-soft {
  will-change: transform;
  animation: shake-soft 620ms cubic-bezier(0.36, 0.07, 0.19, 0.97) 1;
}

@keyframes shake-soft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(-6px, 0, 0);
  }
  50% {
    transform: translate3d(6px, 0, 0);
  }
  75% {
    transform: translate3d(-4px, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.button_text {
  transition: all 0.2s;
}
.button--loading .button_text {
  visibility: hidden;
  opacity: 0;
}

.button--loading::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border: 4px solid transparent;
  border-top-color: var(--white);
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
}
@keyframes button-loading-spinner {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}

/* ---------------------------------------
   Reduced motion preference
---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------
   Media Queries
---------------------------------------- */
@media only screen and (max-width: 480px) {
  header i.bi-telephone-fill {
    font-size: 1.25em;
  }
}

@media only screen and (max-width: 767px) {
  .phoneNum {
    font-size: 1.35em;
  }
}

@media only screen and (min-width: 768px) {
  body {
    height: 100%;
    min-height: auto;
  }
  .hero-text {
    text-align: center;
    color: var(--white);
    width: 60%;
  }
}

@media (max-width: 991.98px) {
  #quote-page {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
      url("../assets/img/quote-bg-sm.webp");
  }
}

@media (min-width: 992px) {
  #quote-page {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
      url("../assets/img/quote-bg.webp");
  }
}

@media only screen and (min-width: 992px) {
  .nav-link {
    font-size: 1.5em;
    letter-spacing: 0.1em;
    color: var(--black);
    position: relative;
    text-transform: uppercase;
    text-decoration: none;
    padding-bottom: 8px;
  }
  #services {
    scroll-margin-top: 100px;
  }
  #reviews {
    scroll-margin-top: 100px;
  }
}

/* iPad 1, 2, Mini and Air */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 1) {
  .whyUsIcons {
    width: 25%;
  }
}

/* Portrait only - iPad 1, 2, Mini and Air */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 1) {
  .whyUsIcons {
    width: 25%;
  }
}

@media only screen and (min-width: 1200px) {
  #services img {
    width: 60%;
  }
}

@media only screen and (min-width: 1400px) and (min-height: 1300px) {
  #quote-page {
    height: 90vh;
  }
}

@media only screen and (min-width: 1950px) {
  .hero-text h1 {
    font-size: 3.5em;
  }
  .hero-text {
    text-align: center;
    width: 50%;
    color: var(--white);
  }
}
