/* Clone-only styles for Green Line LLC. The site's own stylesheet is public/assets/site.css (the
   live compiled Tailwind bundle, untouched). Everything here is either an addition from the
   intake (discount bar, dropdowns, preloader, map, sub-page hero) or a utility the live
   stylesheet does not carry. Colours: forest #214E34, natural #5C8A4D, stone #B79A72, beige #F5F1E8. */

/* ---------- utilities missing from site.css ---------- */
.gap-x-4 { column-gap: 1rem; }
.gap-x-8 { column-gap: 2rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pt-10 { padding-top: 2.5rem; }
.text-forest\/30 { color: rgba(33, 78, 52, 0.3); }

/* ---------- discount bar above the fixed nav (intake: 15% off fall cleanup) ---------- */
.site-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 40px;
  padding: 0 16px;
  background: #16321f;
  color: #fff;
  font: 500 13px/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}
.site-topbar strong { color: #d9c4a3; font-weight: 700; }
.site-topbar a {
  color: #214e34;
  background: #f5f1e8;
  border-radius: 6px;
  padding: 5px 12px;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s;
}
.site-topbar a:hover { background: #fff; }
@media (max-width: 767px) {
  .site-topbar { font-size: 12px; gap: 10px; }
  .site-topbar span { overflow: hidden; text-overflow: ellipsis; }
}
/* the nav, its progress bar and the page move down by the bar's height */
nav.fixed.top-0 { top: 40px; }
.scroll-progress { top: 40px; }
body { padding-top: 40px; }
nav.fixed .nav-dd-panel { z-index: 60; }

/* ---------- nav: hover/colour details the live bundle set from JS ---------- */
.nav-quote:hover { background: #5c8a4d !important; }

/* ---------- nav dropdowns (desktop hover) ---------- */
.nav-dd { display: inline-flex; }
.nav-dd-chevron { transition: transform 0.2s; }
.nav-dd:hover .nav-dd-chevron, .nav-dd:focus-within .nav-dd-chevron { transform: rotate(180deg); }
.nav-dd-panel {
  min-width: 16rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.nav-dd:hover .nav-dd-panel, .nav-dd:focus-within .nav-dd-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}
.nav-dd-menu { width: 16rem; }
.nav-dd-item:hover { background: #f5f1e8; }
.nav-dd--wide .nav-dd-menu { width: 30rem; display: grid; grid-template-columns: 1fr 1fr; }
.nav-dd--wide .nav-dd-all { grid-column: 1 / -1; }
.nav-dd-all:hover { background: #f5f1e8; }

/* ---------- nav: mobile sub-lists under Services / Service Areas ---------- */
.nav-mobile-sub { padding-left: 1rem; }

/* ---------- sub-page hero band (same look as the home hero, shorter) ---------- */
.site-page-hero {
  min-height: 520px;
  padding: 11rem 0 5rem; /* clears the 40px bar + 80px nav */
  display: flex;
  align-items: center;
}
@media (max-width: 1023px) {
  .site-page-hero { min-height: 460px; padding: 9rem 0 4rem; }
}

/* ---------- home hero entrance (the live bundle animated these inline styles from JS) ---------- */
html.js #home:not(.hero-ready) img.object-cover { transform: scale(1.06) !important; }
html.js #home:not(.hero-ready) h1,
html.js #home:not(.hero-ready) p,
html.js #home:not(.hero-ready) .max-w-3xl > span,
html.js #home:not(.hero-ready) .max-w-3xl > div { opacity: 0 !important; }
html.js #home:not(.hero-ready) h1,
html.js #home:not(.hero-ready) p,
html.js #home:not(.hero-ready) .max-w-3xl > .mt-9 { transform: translateY(24px) !important; }

/* ---------- hosted website form: never shorter than its content, so no inner scrollbar ---------- */
.site-form-embed { width: 100%; }
.site-form-embed iframe { display: block; min-height: 860px; }

/* ---------- hosted reviews widget ---------- */
.site-reviews-embed iframe { display: block; border: 0; width: 100%; min-height: 320px; }

/* ---------- service areas map ---------- */
#service-area-map {
  height: 460px;
  border-radius: 0.5rem;
  border: 1px solid rgba(183, 154, 114, 0.25);
  box-shadow: 0 10px 30px rgba(33, 78, 52, 0.12);
  overflow: hidden;
  background: #eef2ea;
  z-index: 0;
}
#service-area-map .leaflet-popup-content { font: 14px/1.4 Inter, ui-sans-serif, system-ui, sans-serif; margin: 10px 14px; }
#service-area-map .leaflet-tooltip { font: 600 12px/1 Inter, ui-sans-serif, system-ui, sans-serif; }

/* ---------- logo page preloader ---------- */
#site-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #f5f1e8;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
#site-preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
#site-preloader img { width: min(260px, 64vw); height: auto; animation: site-preloader-breathe 1.8s ease-in-out infinite; }
#site-preloader .site-preloader-name { color: #214e34; font: 700 28px/1 "Playfair Display", ui-serif, Georgia, serif; letter-spacing: -0.01em; }
#site-preloader .site-preloader-sub { color: #214e34; opacity: 0.7; font: 600 11px/1 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: 0.25em; margin-top: -10px; }
#site-preloader .site-preloader-stroke { position: relative; width: 200px; height: 4px; border-radius: 999px; background: rgba(33, 78, 52, 0.12); overflow: hidden; }
#site-preloader .site-preloader-stroke::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  border-radius: 999px;
  background: linear-gradient(90deg, #214e34 0%, #214e34 60%, #b79a72 60%, #b79a72 100%);
  animation: site-preloader-sweep 1.3s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes site-preloader-sweep { 0% { transform: translateX(-110%); } 100% { transform: translateX(240%); } }
@keyframes site-preloader-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  #site-preloader img, #site-preloader .site-preloader-stroke::before { animation: none; }
}

/* ---------- quote popup (header "Get a Free Quote", welcome popup button): the hosted form ---------- */
.site-quote-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(22, 50, 31, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.site-quote-modal.is-open { opacity: 1; }
.site-quote-modal__card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #f5f1e8;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  padding: 28px 22px 22px;
}
.site-quote-modal__close,
.site-welcome__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #214e34;
  color: #fff;
  font: 400 24px/1 Arial, sans-serif;
  cursor: pointer;
}
.site-quote-modal__close:hover,
.site-welcome__close:hover { background: #5c8a4d; }
.site-quote-modal__title {
  margin: 0 0 4px;
  color: #214e34;
  font: 700 26px/1.15 "Playfair Display", ui-serif, Georgia, serif;
}
.site-quote-modal__lead {
  margin: 0 0 14px;
  color: rgba(38, 38, 38, 0.7);
  font: 400 15px/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
}
.site-quote-modal iframe { display: block; width: 100%; min-height: 820px; border: 0; border-radius: 10px; background: #fff; }
body.site-modal-open { overflow: hidden; }

/* ---------- welcome popup (once per browser session) ---------- */
.site-welcome {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(22, 50, 31, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.site-welcome.is-open { opacity: 1; }
.site-welcome__card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #f5f1e8;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  padding: 36px 28px 28px;
  text-align: center;
  transform: translateY(16px);
  transition: transform 0.3s ease;
}
.site-welcome.is-open .site-welcome__card { transform: none; }
.site-welcome__card img { width: 200px; height: auto; margin: 0 auto 14px; }
.site-welcome__card h3 { margin: 0; color: #214e34; font: 700 28px/1.15 "Playfair Display", ui-serif, Georgia, serif; }
.site-welcome__card p { margin: 10px 0 0; color: rgba(38, 38, 38, 0.72); font: 400 15px/1.55 Inter, ui-sans-serif, system-ui, sans-serif; }
.site-welcome__offer {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(33, 78, 52, 0.1);
  color: #214e34;
  font: 600 12px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-welcome__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.site-welcome__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 0;
  border-radius: 6px;
  background: #214e34;
  color: #fff;
  font: 600 15px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
}
.site-welcome__btn:hover { background: #5c8a4d; }
.site-welcome__btn--alt { background: #fff; color: #214e34; border: 1px solid rgba(33, 78, 52, 0.25); }
.site-welcome__btn--alt:hover { background: #fff; border-color: #214e34; }
@media (min-width: 480px) {
  .site-welcome__actions { flex-direction: row; justify-content: center; }
}

/* ---------- client media gallery (/portfolio): photos and videos, paginated, lightbox ---------- */
#sg-gallery-root { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.sg-toggle { display: flex; gap: 4px; margin-bottom: 18px; background: #214e34; border-radius: 10px; padding: 4px; width: fit-content; }
.sg-toggle-btn { background: transparent; color: rgba(255, 255, 255, 0.7); border: none; padding: 9px 20px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.25s; }
.sg-toggle-btn.active { background: #fff; color: #214e34; }
.sg-toggle-btn:hover:not(.active) { color: #fff; }
.sg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sg-item { position: relative; overflow: hidden; border-radius: 8px; background: #e8e2d5; cursor: pointer; aspect-ratio: 1 / 1; border: 0; padding: 0; }
.sg-item img, .sg-item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease; }
.sg-item:hover img, .sg-item:hover video { transform: scale(1.04); filter: brightness(1.06); }
.sg-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(22, 50, 31, 0.45) 100%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.sg-item:hover::after { opacity: 1; }
.sg-item .sg-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; background: rgba(255, 255, 255, 0.92); border-radius: 50%; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 2; }
.sg-item .sg-play::after { content: ""; display: block; width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #214e34; margin-left: 4px; }
.sg-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; }
.sg-page-btn { background: #fff; color: #214e34; border: 1px solid rgba(33, 78, 52, 0.2); padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.25s; }
.sg-page-btn:hover:not(:disabled) { border-color: #214e34; transform: translateY(-1px); }
.sg-page-btn:disabled { opacity: 0.35; cursor: default; }
.sg-page-btn.active { background: #214e34; color: #fff; border-color: #214e34; font-weight: 700; }
.sg-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.95); z-index: 100001; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.35s; cursor: zoom-out; -webkit-user-select: none; user-select: none; }
.sg-overlay.active { opacity: 1; }
.sg-overlay .sg-lb-img, .sg-overlay .sg-lb-vid { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7); cursor: default; }
.sg-close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: #fff; font-size: 34px; cursor: pointer; opacity: 0.75; transition: opacity 0.2s; z-index: 10; }
.sg-close:hover { opacity: 1; }
.sg-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 26px; cursor: pointer; transition: background 0.25s, transform 0.25s; z-index: 10; display: flex; align-items: center; justify-content: center; }
.sg-nav:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-50%) scale(1.08); }
.sg-nav.prev { left: 16px; }
.sg-nav.next { right: 16px; }
.sg-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.75); font-size: 14px; font-weight: 500; letter-spacing: 0.5px; z-index: 10; }
@media (max-width: 768px) {
  .sg-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
  .sg-nav { width: 40px; height: 40px; font-size: 20px; }
  .sg-nav.prev { left: 8px; }
  .sg-nav.next { right: 8px; }
}
@media (max-width: 480px) {
  .sg-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}
