/* ============================================================
   ANAVAH TRADE SERVICES — Main Stylesheet
   Dark Forest Theme · Built for 60fps smooth transitions
   ============================================================ */

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --bg:            #FFFFFF;
  --surface:       #F2F5F2;
  --surface2:      #E8EEE8;
  --surface3:      #D4E0D4;
  --surface4:      #B8CCB8;
  --green-dark:    #1A3A1A;
  --green-mid:     #2D5C2D;
  --green-bright:  #3A8C1A;
  --green-glow:    rgba(58,140,26,0.12);
  --orange:        #E07B2A;
  --orange2:       #C96A10;
  --orange-glow:   rgba(224,123,42,0.18);
  --white:         #FFFFFF;
  --text-bright:   #1A2A1A;
  --text-mid:      #3D5C3D;
  --text-dim:      #7A9A7A;
  --border:        rgba(0,0,0,0.08);
  --border-green:  rgba(58,140,26,0.2);
  --border-orange: rgba(224,123,42,0.35);
  --radius:        10px;
  --radius-sm:     6px;
  --radius-pill:   100px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text-bright);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Stage ──────────────────────────────────────────────────── */
.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* dynamic viewport height for mobile browsers */
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* Subtle diagonal stripe texture */
.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -48deg,
      transparent,
      transparent 64px,
      rgba(0,0,0,0.012) 64px,
      rgba(0,0,0,0.012) 65px
    );
  pointer-events: none;
  z-index: 0;
}

/* Ambient green radial glow center */
.stage::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
  height: 45vh;
  background: radial-gradient(ellipse at 50% 0%, rgba(58,140,26,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Truck Zone ─────────────────────────────────────────────── */
.truck-zone {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: clamp(4px, 1vh, 16px);
  flex-shrink: 0;
  will-change: transform;
  background: #ffffff;
  transition: background-color 0.3s ease;
}

.truck-img {
  width: min(560px, 90vw);
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,0.18)) drop-shadow(0 2px 6px rgba(0,0,0,0.1));
}

/* ── Middle Zone ────────────────────────────────────────────── */
.middle-zone {
  position: relative;
  z-index: 8;
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
  overflow: hidden;
}

/* Blurred background image — animates in during phase 3 */
.middle-bg {
  position: absolute;
  /* Fixed size — never changes, so background-size:cover never rescales the image */
  top: -16px;
  bottom: -16px;
  left: -16px;
  right: -16px;
  background: url('../../MainBG.png') center center / cover no-repeat;
  filter: blur(6px) brightness(0.9) saturate(0.88);
  z-index: 0;
  pointer-events: none;
  /* Curtain reveal starts fully clipped from the bottom up */
  clip-path: inset(0 0 100% 0 round 0px);
  will-change: clip-path;
  transition: clip-path 0.3s ease;
}

/* Expanded: main services page — small clean gap at top and bottom */
.middle-bg.expanded {
  clip-path: inset(3% 0 3% 0 round 0px);
}

/* Focused: service detail pages — clip to just behind the divider lines
   (back-button border-bottom at top, estimate border-top at bottom) */
.middle-bg.focused {
  clip-path: inset(8% 0 9% 0 round 0px);
}

/* ── Services View ──────────────────────────────────────────── */
.services-view {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(4px, 1vh, 10px) clamp(10px, 3vw, 32px);
  transition: opacity 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

.services-view.exiting {
  opacity: 0;
  transform: translateX(-50px);
  pointer-events: none;
}

/* Header above buttons */
.pick-header {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(11px, 2vw, 16px);
  font-weight: 600;
  letter-spacing: clamp(2px, 0.5vw, 4px);
  text-transform: uppercase;
  color: var(--green-dark);
  text-align: center;
  margin-bottom: clamp(10px, 1.8vh, 18px);
  /* Pill container */
  display: inline-block;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 100px;
  padding: 5px 16px 4px;
}

/* Single-column service button list */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(7px, 1.2vw, 12px);
  width: 100%;
  max-width: 520px;
}

/* Individual service button */
.service-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(0,0,0,0.10);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: clamp(8px, 1.3vh, 14px) clamp(10px, 1.6vw, 16px);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition:
    background     0.22s ease,
    border-color   0.22s ease,
    transform      0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow     0.22s ease;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

/* All children non-interactive so hover always hits the button */
.service-btn * { pointer-events: none; }

/* Shimmer overlay */
.service-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(92,191,42,0.06) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.service-btn:hover::before { opacity: 1; }

.service-btn:hover {
  background: #F5FBF2;
  border-left-color: var(--green-bright);
  transform: translateX(4px);
  box-shadow:
    0 6px 24px rgba(0,0,0,0.1),
    0 0 0 1px rgba(58,140,26,0.14);
}

.service-btn:active {
  transform: translateX(2px) scale(0.985);
  transition-duration: 0.08s;
}

/* Icon badge */
.service-btn-icon {
  width: clamp(30px, 4.5vw, 42px);
  height: clamp(30px, 4.5vw, 42px);
  background: rgba(224,123,42,0.14);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.22s ease;
}

.service-btn:hover .service-btn-icon {
  background: rgba(92,191,42,0.14);
}

.service-btn-icon svg {
  width: clamp(14px, 2.2vw, 20px);
  height: clamp(14px, 2.2vw, 20px);
  fill: var(--orange);
  transition: fill 0.22s ease;
}

.service-btn:hover .service-btn-icon svg {
  fill: var(--green-bright);
}

/* Button text body */
.service-btn-body { flex: 1; min-width: 0; }

.service-btn-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(11px, 1.55vw, 14px);
  font-weight: 700;
  color: #1A2A1A;
  line-height: 1.25;
  letter-spacing: 0.2px;
  margin-bottom: 3px;
}

.service-btn-desc {
  font-size: clamp(9px, 1.1vw, 11.5px);
  color: #5A7A5A;
  line-height: 1.3;
}

/* Arrow */
.service-btn-arrow {
  color: var(--orange);
  font-size: clamp(14px, 2vw, 18px);
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.22s ease;
}

.service-btn:hover .service-btn-arrow {
  transform: translateX(4px);
  color: var(--green-bright);
}

/* ── Detail View ────────────────────────────────────────────── */
.detail-view {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(40px);
  pointer-events: none;
  transition:
    opacity   0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}
/* Force ALL descendants to be non-interactive when panel is hidden.
   This overrides Leaflet’s own pointer-events:auto on its internal panes. */
.detail-view:not(.visible),
.detail-view:not(.visible) * {
  pointer-events: none !important;
}

.detail-view.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Back button bar */
.detail-top-bar {
  display: flex;
  align-items: center;
  padding: clamp(6px, 1.2vh, 12px) clamp(14px, 3vw, 32px);
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: #ffffff;
  position: relative;
  z-index: 2;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid rgba(0,0,0,0.15);
  color: #5A7A5A;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.back-btn:hover {
  border-color: var(--green-bright);
  color: var(--green-bright);
  background: rgba(58,140,26,0.06);
}

/* Scrollable content area */
.detail-scroll {
  flex: 1;
  overflow-y: auto;
  padding: clamp(12px, 1.8vh, 20px) clamp(14px, 3vw, 32px);
  scrollbar-width: thin;
  scrollbar-color: var(--surface4) transparent;
  overscroll-behavior: contain;
  background: rgba(255,255,255,0.82);
}

.detail-scroll::-webkit-scrollbar { width: 4px; }
.detail-scroll::-webkit-scrollbar-track { background: transparent; }
.detail-scroll::-webkit-scrollbar-thumb {
  background: var(--surface4);
  border-radius: 2px;
}

/* Detail content layout */
.detail-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(26px, 5vw, 50px);
  letter-spacing: 2px;
  color: #1A2A1A;
  line-height: 1.05;
  margin-bottom: 10px;
}

.detail-title .accent { color: var(--orange); }

.detail-desc {
  font-size: clamp(12.5px, 1.5vw, 14.5px);
  color: #3D5C3D;
  line-height: 1.68;
  margin-bottom: clamp(14px, 2vh, 22px);
  max-width: 600px;
}

.detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2.5vw, 28px);
}

.detail-section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.detail-section-label.dim { color: var(--text-dim); }

.detail-list {
  list-style: none;
  margin-bottom: 16px;
}

.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: clamp(12px, 1.4vw, 14px);
  color: #3D5C3D;
  line-height: 1.55;
  padding: 4px 0;
}

.detail-list li::before {
  content: '✓';
  color: var(--green-bright);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 12px;
}

/* Full-width include list (no rate card beside it) */
.detail-list--full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 24px;
  max-width: 560px;
}
.detail-list--full li {
  font-size: clamp(13px, 1.6vw, 15.5px);
}
@media (max-width: 480px) {
  .detail-list--full { grid-template-columns: 1fr; }
}

.detail-excludes { margin-top: 18px; }

.detail-list.excludes li::before {
  content: '✗';
  color: #B0B0B0;
}

.detail-list.excludes li { color: #A0A0A0; }

/* Rate card */
.rate-card {
  background: #1A3A1A;
  border: 1px solid rgba(224,123,42,0.35);
  border-radius: var(--radius);
  padding: clamp(14px, 2.2vh, 22px);
}

.rate-card-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}

.rate-card-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4.5vw, 44px);
  color: #FFFFFF;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 10px;
}

.rate-card-note {
  font-size: clamp(11px, 1.3vw, 13px);
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
}

/* Trust badges under rate card */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* Bottom CTA bar in detail view */
.detail-footer {
  padding: clamp(8px, 1.4vh, 14px) clamp(14px, 3vw, 32px);
  flex-shrink: 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #ffffff;
  position: relative;
  z-index: 2;
}

/* ── Text Logo Zone ─────────────────────────────────────────── */
.textlogo-zone {
  position: relative;
  z-index: 6;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding-bottom: clamp(4px, 1vh, 14px);
  flex-shrink: 0;
  will-change: transform, opacity;
  background: #ffffff;
}

.textlogo-img {
  width: min(380px, 78vw);
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
  opacity: 1;
}

/* Facebook banner */
.fb-banner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #1877F2;
  color: #fff;
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(11px, 1.6vw, 13px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  box-shadow: 0 3px 12px rgba(24,119,242,0.35);
  will-change: transform, opacity;
  transition: background 0.2s, transform 0.15s;
}
.fb-banner:hover {
  background: #1464d0;
  transform: translateY(-2px);
}

/* ── Top Estimate Button ─────────────────────────────────────── */
.top-estimate-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 500;
  background: var(--orange);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow:
    0 4px 24px rgba(224,123,42,0.45),
    0 2px 8px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    opacity    0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform  0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease,
    box-shadow 0.2s ease;
  will-change: transform, opacity;
}

.top-estimate-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.top-estimate-btn:hover {
  background: var(--orange2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(224,123,42,0.55), 0 3px 10px rgba(0,0,0,0.4);
}

.top-estimate-btn:active {
  transform: translateY(0px);
  transition-duration: 0.08s;
}

.top-estimate-btn svg { flex-shrink: 0; }

/* ── Bottom CTA Buttons ─────────────────────────────────────── */
.bottom-estimate-btn {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 13px 20px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(224,123,42,0.3);
}

.bottom-estimate-btn:hover {
  background: var(--orange2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224,123,42,0.45);
}

.bottom-estimate-btn:active {
  transform: translateY(0);
  transition-duration: 0.08s;
}

/* ── Modal Overlay ──────────────────────────────────────────── */
#modalOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 10, 4, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 12px;
}

#modalOverlay.open { display: flex; }

#modalBox {
  background: #ffffff;
  border: 1px solid rgba(58,140,26,0.18);
  border-top: 4px solid var(--green-bright);
  border-radius: 14px;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 22px 24px 18px;
  animation: modalSlideUp 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal header */
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.modal-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 3px;
}

.modal-title-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: #1A2A1A;
  letter-spacing: 1.5px;
  line-height: 1;
}

.modal-close {
  background: none;
  border: 1px solid rgba(0,0,0,0.15);
  color: #888;
  font-size: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.modal-close:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(224,123,42,0.08);
}

/* ── Form Styles ────────────────────────────────────────────── */
.form-group { margin-bottom: 11px; }

label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #5A7A5A;
  margin-bottom: 5px;
}

label .req { color: var(--orange); margin-left: 2px; }

input, select, textarea {
  width: 100%;
  background: #f7f9f7;
  border: 1px solid rgba(0,0,0,0.13);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: #1A2A1A;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

input::placeholder, textarea::placeholder { color: #aaa; }

select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(0,0,0,0.35)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-color: #f7f9f7; padding-right: 36px; }

select option { background: #fff; color: #1A2A1A; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(58,140,26,0.1);
}

textarea { resize: vertical; min-height: 75px; }

/* Contact preference radio */
.pref-group { display: flex; gap: 10px; }
.pref-option { flex: 1; position: relative; }
.pref-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.pref-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-sm);
  background: #f7f9f7;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #5A7A5A;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  margin: 0;
  text-transform: uppercase;
}
.pref-option input[type="radio"]:checked + label {
  border-color: var(--green-bright);
  background: rgba(58,140,26,0.08);
  color: var(--green-bright);
}

/* Submit button */
.submit-btn {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.submit-btn:hover { background: var(--orange2); transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* Direct contact strip */
.skip-row {
  margin-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.09);
  padding-top: 12px;
}
.skip-label {
  font-size: 11px;
  color: #999;
  margin-bottom: 9px;
  text-align: center;
}
.skip-actions { display: flex; gap: 8px; }
.skip-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.skip-btn:hover { transform: translateY(-1px); }
.skip-call {
  background: #f2f2f2;
  color: #1A2A1A;
  border: 1px solid rgba(0,0,0,0.12);
}
.skip-call:hover { background: #e8e8e8; }
.skip-sms {
  background: var(--orange);
  color: var(--white);
}
.skip-sms:hover { background: var(--orange2); }

/* Success view */
#modalSuccessView { text-align: center; padding: 20px 0 8px; }
.success-icon {
  width: 56px; height: 56px;
  background: rgba(92,191,42,0.14);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.success-icon svg { width: 28px; height: 28px; fill: var(--green-bright); }
.success-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: #1A2A1A;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.success-body { font-size: 14px; color: #5A7A5A; line-height: 1.6; }

/* ── Privacy Toast ─────────────────────────────────────────────── */
/* ── Privacy Modal ──────────────────────────────────────────── */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.privacy-modal--visible {
  opacity: 1;
  pointer-events: all;
}
.privacy-modal-box {
  background: #fff;
  border-radius: 16px;
  padding: clamp(28px, 5vw, 44px) clamp(24px, 5vw, 40px);
  max-width: min(420px, calc(100vw - 32px));
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35), 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.privacy-modal--visible .privacy-modal-box {
  transform: translateY(0) scale(1);
}
.privacy-modal-icon-wrap {
  width: 52px;
  height: 52px;
  background: #EBF7EC;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.privacy-modal-icon-wrap svg {
  width: 26px;
  height: 26px;
  fill: #22a846;
}
.privacy-modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  color: #1A3A1A;
  margin: 0 0 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.privacy-modal-body {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin: 0 0 24px;
}
.privacy-modal-body strong {
  color: #1A3A1A;
}
.privacy-modal-btn {
  background: #1A3A1A;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 13px 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
}
.privacy-modal-btn:hover {
  background: #2D5C2D;
  transform: translateY(-1px);
}

/* ── Map Result Card ────────────────────────────────────────── */
.map-result {
  display: none;
  margin-top: 8px;
  padding: 10px 14px 12px;
  border-left: 3px solid #aaa;
  background: rgba(0,0,0,0.03);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: border-left-color 0.3s;
}
.map-result--visible { display: block; }

.map-result-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
  line-height: 1.3;
}

.map-result-body {
  font-size: 12.5px;
  color: #3D5C3D;
  line-height: 1.55;
  margin-bottom: 10px;
}

.map-result-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--orange);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 10px rgba(224,123,42,0.3);
}
.map-result-cta:hover {
  background: var(--orange2);
  transform: translateY(-1px);
}

/* ── Privacy Toast ─────────────────────────────────────────────── */

/* Location button gets a green-tinted border instead of orange */
.service-btn--map {
  border-left-color: #2D7A2D;
}
.service-btn--map .service-btn-icon {
  background: rgba(45,122,45,0.12);
}
.service-btn--map .service-btn-icon svg {
  fill: #2D7A2D;
}

/* Estimate button variant — orange accent */
.service-btn--estimate {
  border-left-color: var(--orange);
  background: #FFF8F2;
}
.service-btn--estimate .service-btn-icon {
  background: rgba(224,123,42,0.15);
}
.service-btn--estimate .service-btn-icon svg {
  fill: var(--orange);
}
.service-btn--estimate:hover {
  background: #FFF3E8;
  border-left-color: var(--orange2);
  box-shadow: 0 6px 24px rgba(224,123,42,0.18), 0 0 0 1px rgba(224,123,42,0.2);
}
.service-btn--estimate:hover .service-btn-icon { background: rgba(224,123,42,0.22); }
.service-btn--estimate:hover .service-btn-icon svg { fill: var(--orange2); }
.service-btn--estimate:hover::before { background: linear-gradient(125deg, rgba(224,123,42,0.07) 0%, transparent 55%); }
.service-btn--estimate:hover .service-btn-arrow { color: var(--orange); }
.service-btn--map:hover {
  border-left-color: #22a846;
}
.service-btn--map:hover .service-btn-icon {
  background: rgba(34,168,70,0.14);
}
.service-btn--map:hover .service-btn-icon svg {
  fill: #22a846;
}

/* ── Per-service icon colours ────────────────────────────────────── */
/* Icons use inline style="fill:..." so we suppress the SVG-level CSS fill */
.service-btn--carpentry .service-btn-icon svg,
.service-btn--plumbing  .service-btn-icon svg,
.service-btn--electrical .service-btn-icon svg,
.service-btn--hauling   .service-btn-icon svg { fill: none; }

/* Carpentry — gray speed-square */
.service-btn--carpentry { border-left-color: #888; }
.service-btn--carpentry .service-btn-icon { background: rgba(120,120,120,0.13); }
.service-btn--carpentry:hover .service-btn-icon { background: rgba(120,120,120,0.22); }

/* Plumbing — blue water drop */
.service-btn--plumbing { border-left-color: #2979FF; }
.service-btn--plumbing .service-btn-icon { background: rgba(41,121,255,0.12); }
.service-btn--plumbing:hover .service-btn-icon { background: rgba(41,121,255,0.22); }

/* Electrical — yellow bolt */
.service-btn--electrical { border-left-color: #E0A800; }
.service-btn--electrical .service-btn-icon { background: rgba(255,193,7,0.15); }
.service-btn--electrical:hover .service-btn-icon { background: rgba(255,193,7,0.28); }

/* Hauling — dark truck */
.service-btn--hauling { border-left-color: #444; }
.service-btn--hauling .service-btn-icon { background: rgba(30,30,30,0.1); }
.service-btn--hauling:hover .service-btn-icon { background: rgba(30,30,30,0.18); }

/* Map panel top title */
.map-top-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2D7A2D;
  margin-left: 14px;
}

/* Address search bar */
.map-search-bar {
  padding: clamp(8px, 1.2vh, 12px) clamp(14px, 3vw, 32px);
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: #FAFBFA;
}

.map-search-inner {
  display: flex;
  gap: 8px;
}

.map-search-input {
  flex: 1;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 13.5px;
  color: #1A2A1A;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.map-search-input::placeholder { color: #8AAA8A; }
.map-search-input:focus {
  outline: none;
  border-color: #2D7A2D;
  box-shadow: 0 0 0 3px rgba(45,122,45,0.1);
}

.map-search-btn {
  background: #1A3A1A;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.map-search-btn:hover { background: #2D5C2D; transform: translateY(-1px); }
.map-search-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Autocomplete dropdown */
.map-ac-wrapper {
  position: relative;
  background: #fff;
  border: 1.5px solid rgba(45,122,45,0.35);
  border-radius: var(--radius-sm);
  margin-top: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.13);
  z-index: 9999;
  overflow: hidden;
}
.map-ac-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 9px 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: #1A2A1A;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.map-ac-item:last-child { border-bottom: none; }
.map-ac-item:hover, .map-ac-item:focus {
  background: #F0F7F0;
  outline: none;
}

/* Address confirmation */
.map-result-addr {
  font-size: 12px;
  color: #444;
  margin-bottom: 6px;
  font-style: italic;
}

/* Map canvas */
.map-container {
  flex: 1;
  min-height: 0;
  width: 100%;
  z-index: 1;
}

/* Map view gets full white BG — no blurred image behind the map */
#mapView {
  background: #ffffff;
}

/* Override Leaflet z-index to stay inside our stacking context */
.leaflet-pane { z-index: 1 !important; }
.leaflet-top, .leaflet-bottom { z-index: 2 !important; }

/* Zone legend */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: clamp(7px, 1vh, 10px) clamp(14px, 3vw, 32px);
  flex-shrink: 0;
  border-top: 1px solid rgba(0,0,0,0.07);
  background: #FAFBFA;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #3D5C3D;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ── Responsive ─────────────────────────────────────────────── */

/* Narrow phones */
@media (max-width: 480px) {
  .detail-columns { grid-template-columns: 1fr; }
  .skip-actions { flex-direction: column; }
  .pick-header { margin-bottom: 8px; }
}

/* Compact service view for landscape/short screens */
@media (max-height: 600px) {
  .service-btn { padding: 8px 10px; }
  .service-btn-icon { width: 26px; height: 26px; border-radius: 6px; }
  .service-btn-desc { display: none; }
  .pick-header { margin-bottom: 7px; }
  .detail-scroll { padding-top: 8px; }
}

/* Wider layout on large screens */
@media (min-width: 900px) {
  .service-grid { max-width: 560px; gap: 12px; }
  .detail-columns { gap: 32px; }
  .detail-top-bar, .detail-scroll, .detail-footer { padding-left: 40px; padding-right: 40px; }
}

@media (min-width: 1200px) {
  .truck-img { width: min(620px, 55vw); }
  .textlogo-img { width: min(440px, 40vw); }
}


/* ============================================================
   FAQ — button variant + accordion panel
   ============================================================ */

/* FAQ launcher button — neutral slate accent */
.service-btn--faq {
  border-left-color: #4A6B8A;
}
.service-btn--faq .service-btn-icon {
  background: rgba(74,107,138,0.13);
}
.service-btn--faq .service-btn-icon svg {
  fill: #4A6B8A;
}
.service-btn--faq:hover {
  border-left-color: #2D4A66;
}
.service-btn--faq:hover .service-btn-icon { background: rgba(74,107,138,0.22); }
.service-btn--faq:hover .service-btn-icon svg { fill: #2D4A66; }

/* FAQ panel header title */
.faq-top-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2D4A66;
  margin-left: 14px;
}

/* Scrollable area inside FAQ panel */
.faq-scroll {
  flex: 1;
  overflow-y: auto;
  padding: clamp(14px, 2.4vh, 24px) clamp(14px, 3vw, 32px) clamp(20px, 3vh, 32px);
  background: #FAFBFC;
  -webkit-overflow-scrolling: touch;
}

.faq-intro {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: #6B7B8A;
  margin: 0 0 14px;
  font-style: italic;
}

/* Accordion list */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item.open {
  border-color: rgba(74,107,138,0.35);
  box-shadow: 0 4px 14px rgba(45,74,102,0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1A2A3A;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}
.faq-question:hover {
  background: rgba(74,107,138,0.05);
}
.faq-q-text { flex: 1; }

.faq-q-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #4A6B8A;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-q-icon svg { width: 18px; height: 18px; }
.faq-item.open .faq-q-icon { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.faq-item.open .faq-answer {
  max-height: 600px;
}
.faq-answer-inner {
  padding: 0 16px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #3A4756;
}
.faq-answer-inner a {
  color: var(--orange, #E07B2A);
  font-weight: 600;
  text-decoration: none;
}
.faq-answer-inner a:hover { text-decoration: underline; }

/* Footer "Still have questions?" */
.faq-footer {
  margin-top: 22px;
  padding: 16px;
  background: #fff;
  border: 1px dashed rgba(74,107,138,0.3);
  border-radius: var(--radius-sm, 8px);
  text-align: center;
}
.faq-footer-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-style: italic;
  color: #4A6B8A;
  margin-bottom: 10px;
}
.faq-footer-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.faq-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-sm, 8px);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.faq-footer-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.faq-footer-btn--call {
  background: #1A3A1A;
  color: #fff;
}
.faq-footer-btn--text {
  background: var(--orange, #E07B2A);
  color: #fff;
}
