/* RB Landscaping & Snow Removal
   Bootstrap 5.3 does the grid and the navbar; everything else lives here. */

:root {
  --rb-green: #00660c;
  --rb-green-dark: #004909;
  --rb-green-deep: #00360a;
  --rb-lime: #8dc63f;
  --rb-ink: #21252f;
  --rb-body: #484c50;
  --rb-tint: #f4f8f1;
  --rb-line: #e3e9df;
  --rb-radius: 10px;
  --rb-shadow: 0 18px 50px -12px rgb(0 40 6 / .28);
  --header-h: 96px;

  --bs-body-font-family: "Work Sans", system-ui, sans-serif;
  --bs-body-color: var(--rb-body);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.7;
  --bs-link-color-rgb: 0, 102, 12;
  --bs-link-hover-color-rgb: 0, 73, 9;
}

html { scroll-padding-top: calc(var(--header-h) + 12px); }
body { background: #fff; }

h1, h2, h3, h4 {
  font-family: "Poppins", sans-serif;
  color: var(--rb-ink);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; font-weight: 600; }

img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--rb-ink); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--rb-lime); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  --bs-btn-font-family: "Poppins", sans-serif;
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.6rem;
  --bs-btn-padding-y: .8rem;
  --bs-btn-border-radius: 999px;
  --bs-btn-font-size: 1rem;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm-pad { --bs-btn-padding-x: 1.15rem; --bs-btn-padding-y: .55rem; --bs-btn-font-size: .95rem; }

.btn-rb {
  --bs-btn-bg: var(--rb-green);
  --bs-btn-border-color: var(--rb-green);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--rb-green-dark);
  --bs-btn-hover-border-color: var(--rb-green-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--rb-green-deep);
  --bs-btn-active-color: #fff;
  box-shadow: 0 8px 20px -8px rgb(0 102 12 / .6);
}
.btn-outline-rb {
  --bs-btn-color: var(--rb-green);
  --bs-btn-border-color: var(--rb-green);
  --bs-btn-hover-bg: var(--rb-green);
  --bs-btn-hover-border-color: var(--rb-green);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--rb-green-dark);
  --bs-btn-active-color: #fff;
  border-width: 2px;
}
.btn-light-rb {
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-color: var(--rb-green);
  --bs-btn-hover-bg: #eef6e8;
  --bs-btn-hover-border-color: #eef6e8;
  --bs-btn-hover-color: var(--rb-green-dark);
  --bs-btn-active-bg: #e1eed8;
  --bs-btn-active-color: var(--rb-green-dark);
}
.btn-outline-light-rb {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgb(255 255 255 / .55);
  --bs-btn-hover-bg: rgb(255 255 255 / .12);
  --bs-btn-hover-border-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  border-width: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgb(255 255 255 / .97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  border-color: var(--rb-line);
  box-shadow: 0 6px 24px -14px rgb(0 0 0 / .35);
}
.site-header .navbar { min-height: var(--header-h); padding: .5rem 0; }
.navbar-brand { padding: 0; }
.navbar-brand img { height: 80px; width: auto; transition: height .25s ease; }
.site-header.is-scrolled .navbar-brand img { height: 64px; }

.navbar .nav-link {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: .98rem;
  color: var(--rb-ink);
  padding: .5rem .9rem !important;
  position: relative;
}
.navbar .nav-link::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .2rem;
  height: 2px; background: var(--rb-lime);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--rb-green); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }

.navbar-toggler {
  border: 0; padding: .6rem; width: 46px; height: 46px;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  box-shadow: none !important;
}
.toggler-bar {
  display: block; height: 2px; width: 24px; background: var(--rb-ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
  :root { --header-h: 72px; }
  .navbar-brand img, .site-header.is-scrolled .navbar-brand img { height: 58px; }
  .navbar-collapse { padding: .5rem 0 1.25rem; }
  .navbar .nav-link { padding: .7rem 0 !important; border-bottom: 1px solid var(--rb-line); }
  .navbar .nav-link::after { display: none; }
  .navbar-nav .btn { margin-top: 1rem; width: 100%; }
}

/* ---------- Shared section bits ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-tint { background: var(--rb-tint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.75rem; }

.eyebrow {
  font-family: "Poppins", sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rb-green);
  margin-bottom: .6rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--rb-lime); }
.section-head .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--rb-lime); }
.eyebrow-light { color: #d9efc6; }

.img-rounded {
  border-radius: var(--rb-radius);
  box-shadow: var(--rb-shadow);
  width: 100%;
  object-fit: cover;
}
.img-tall { aspect-ratio: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: rgb(255 255 255 / .82);
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(4.5rem, 10vw, 7.5rem);
  background:
    radial-gradient(1100px 600px at 85% 10%, rgb(141 198 63 / .22), transparent 60%),
    linear-gradient(160deg, var(--rb-green) 0%, var(--rb-green-dark) 100%);
}
/* soft leaf shapes in the background, borrowed from the logo mark */
.hero::before {
  content: "";
  position: absolute; left: -120px; bottom: -160px;
  width: 620px; height: 620px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='white' stroke-width='1.4'%3E%3Cpath d='M100 190C40 150 30 80 100 10c70 70 60 140 0 180z'/%3E%3Cpath d='M100 190V40'/%3E%3Cpath d='M100 150l-30-30M100 120l-26-28M100 90l-20-22M100 150l30-30M100 120l26-28M100 90l20-22'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: .07;
  transform: rotate(-24deg);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero .lead { font-size: 1.15rem; max-width: 34rem; margin-bottom: 2rem; }

.hero-photo { position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border: 2px solid rgb(141 198 63 / .55);
  border-radius: var(--rb-radius);
}
.hero-photo img {
  position: relative;
  width: 100%;
  border-radius: var(--rb-radius);
  box-shadow: 0 30px 70px -10px rgb(0 0 0 / .45);
}
@media (max-width: 575.98px) {
  .hero-photo::before { inset: 14px -10px -14px 10px; }
}

/* ---------- Services ---------- */
.service-card {
  height: 100%;
  background: #fff;
  border-radius: var(--rb-radius);
  overflow: hidden;
  border: 1px solid var(--rb-line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--rb-shadow); }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-body { padding: 1.6rem 1.6rem 1.8rem; }
.service-body h3 { margin-bottom: .6rem; }
.service-body h3::after {
  content: ""; display: block; width: 36px; height: 3px; margin-top: .7rem;
  background: var(--rb-lime); border-radius: 2px;
}
.service-body p { margin: 0; font-size: 1rem; }

/* ---------- Green feature bands (snow + contact) ---------- */
.feature-band {
  background: linear-gradient(150deg, var(--rb-green) 0%, var(--rb-green-dark) 100%);
  border-radius: calc(var(--rb-radius) * 1.6);
  overflow: hidden;
  color: rgb(255 255 255 / .82);
  box-shadow: var(--rb-shadow);
}
.feature-copy {
  padding: clamp(2.25rem, 5vw, 4.5rem);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.feature-copy h2 { color: #fff; }
.feature-copy p { margin-bottom: 1.75rem; max-width: 30rem; }
.feature-photo { min-height: 280px; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.contact-lines { display: grid; gap: 1rem; width: 100%; }
.contact-lines a, .contact-lines p {
  display: flex; align-items: center; gap: 1rem;
  color: #fff; text-decoration: none;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.15rem;
  word-break: break-word;
}
.contact-lines i {
  flex: 0 0 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgb(255 255 255 / .12); color: var(--rb-lime); font-size: 1.15rem;
  transition: background-color .2s ease, color .2s ease;
}
.contact-lines a:hover i { background: #fff; color: var(--rb-green); }
.contact-lines small {
  display: block; font-family: "Work Sans", sans-serif; font-weight: 500;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .65);
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--rb-radius);
  aspect-ratio: 1;
  background: var(--rb-tint);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.gallery-item::after {
  content: "\F52A"; /* bi-zoom-in */
  font-family: "bootstrap-icons";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 1.8rem; color: #fff;
  background: rgb(0 54 10 / .45);
  opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
@media (max-width: 767.98px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: .65rem; } }

.before-after { margin-top: clamp(3.5rem, 7vw, 5rem); }
.ba-figure { position: relative; margin: 0; }
.ba-figure img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--rb-radius); box-shadow: var(--rb-shadow);
}
.ba-tag {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--rb-ink); color: #fff;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 999px;
}
.ba-tag-after { background: var(--rb-green); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--rb-ink);
  color: rgb(255 255 255 / .7);
  padding: 4rem 0 2rem;
}
.footer-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  height: 100%;
  padding: 1.75rem 1rem;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: var(--rb-radius);
  color: inherit; text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.footer-card:hover { border-color: var(--rb-lime); background: rgb(255 255 255 / .03); color: inherit; }
.footer-card i { font-size: 1.6rem; color: var(--rb-lime); margin-bottom: .6rem; }
.footer-card .label {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .2rem;
}
.footer-card .value {
  font-family: "Poppins", sans-serif; font-weight: 600; color: #fff; font-size: 1.05rem;
  word-break: break-word;
}
.footer-bottom {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgb(255 255 255 / .1);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  font-size: .9rem; text-align: center;
}
.footer-logo {
  width: 130px; height: auto;
  background: #fff; border-radius: 8px; padding: .5rem .75rem;
}

/* mobile call button */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 1020;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rb-green); color: #fff; font-size: 1.35rem;
  box-shadow: 0 10px 25px -6px rgb(0 0 0 / .45);
  text-decoration: none;
}
.call-fab:hover { color: #fff; background: var(--rb-green-dark); }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(10 14 12 / .92); }
.lightbox img {
  max-width: min(92vw, 1100px); max-height: 86vh;
  border-radius: 6px; box-shadow: 0 20px 60px rgb(0 0 0 / .5);
}
.lightbox button {
  position: fixed; border: 0; background: rgb(255 255 255 / .1); color: #fff;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.25rem;
  transition: background-color .2s ease;
}
.lightbox button:hover { background: rgb(255 255 255 / .22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transition: opacity .8s ease, transform .8s ease; }
.js .reveal-up { transform: translateY(28px); }
.js .reveal-left, .js .reveal-right { transform: translateY(28px); }
@media (min-width: 992px) {
  .js .reveal-left { transform: translateX(-28px); }
  .js .reveal-right { transform: translateX(28px); }
}
body { overflow-x: clip; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .service-card:hover { transform: none; }
  .gallery-item img { transition: none; }
}
