html { scroll-behavior: smooth; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Filter pills and during/after toggle */
.pill { background: transparent; color: #22201C; border: 1.5px solid #22201C; border-radius: 999px; font: inherit; font-weight: 600; font-size: 14px; padding: 10px 20px; min-height: 44px; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.pill.is-active { background: #1F3B2D; color: #F6F3EE; border-color: #1F3B2D; }
.pill:focus-visible, .quote-fab:focus-visible, .quote-close:focus-visible { outline: 3px solid #1F3B2D; outline-offset: 3px; }

/* Inline request card glow when the floating form hands off */
#request-card { transition: box-shadow .4s ease; }
#request-card.is-glow { box-shadow: 0 0 0 3px #1F3B2D, 0 18px 40px rgba(34, 32, 28, .14); }

/* Floating dock */
.quote-dock { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; font-family: 'Manrope', sans-serif; color: #22201C; }
.quote-panel { pointer-events: none; visibility: hidden; opacity: 0; transform: translateY(16px) scale(.98); transform-origin: bottom right; transition: opacity .28s ease, transform .28s ease, visibility .28s; width: min(380px, calc(100vw - 40px)); max-height: calc(100vh - 120px); overflow-y: auto; box-sizing: border-box; background: #FFFDF9; border: 1px solid #E2DBCF; border-radius: 14px; box-shadow: 0 24px 60px rgba(34, 32, 28, .22); padding: 24px; }
.quote-panel.is-open { pointer-events: auto; visibility: visible; opacity: 1; transform: none; }
.quote-fab { pointer-events: auto; opacity: 1; transform: none; transition: opacity .3s ease, transform .3s ease, background .2s ease, color .2s ease; background: #1F3B2D; color: #F6F3EE; border: 1px solid #1F3B2D; border-radius: 999px; padding: 0 22px 0 18px; min-height: 54px; display: flex; align-items: center; gap: 10px; font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 12px 30px rgba(34, 32, 28, .25); }
.quote-fab.is-open { background: #FFFDF9; color: #1F3B2D; }
.quote-dock.is-near .quote-fab { opacity: 0; transform: translateY(90px); pointer-events: none; }
.quote-close { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #E2DBCF; background: transparent; border-radius: 999px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #22201C; }
.q-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.q-field input, .q-field select, .q-field textarea { border: 0; border-bottom: 1.5px solid #B8AF9F; background: transparent; padding: 8px 0; min-height: 44px; font: inherit; font-size: 16px; font-weight: 400; color: #22201C; }
.q-field textarea { min-height: 0; resize: vertical; }
.form-thanks { font-family: 'Fraunces', serif; font-size: 22px; line-height: 1.4; margin: 0; padding: 24px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .quote-panel, .quote-fab, #request-card, .pill { transition: none; }
}
@media (max-width: 720px) {
  [style*="span 2"] { grid-column: auto !important; }
  .quote-dock { right: 12px; bottom: 12px; }
}

/* ---------- Header that follows and turns into a bubble ---------- */
.site-header-spacer { display: block; }
.site-header {
  position: fixed !important; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 100% !important; z-index: 900;
  background: rgba(246, 243, 238, 0); border-radius: 0;
  transition: top .35s ease, width .45s cubic-bezier(.2,.8,.2,1), padding .35s ease, border-radius .45s ease, background .3s ease, box-shadow .35s ease;
}
.site-header > * { position: relative; }
.site-header-inner { max-width: 1320px; margin: 0 auto; width: 100%; display: flex; flex-wrap: nowrap; gap: 18px; align-items: center; justify-content: space-between; }
.site-header img { transition: height .35s ease; }
.site-header nav { transition: gap .35s ease, font-size .35s ease; flex-wrap: nowrap !important; }
.site-header .header-cta { transition: padding .35s ease, font-size .35s ease, min-height .35s ease; white-space: nowrap; }
.site-header.is-bubble {
  top: 12px; width: min(1040px, calc(100% - 24px)); padding: 8px 10px 8px 22px !important; border-radius: 999px;
  background: rgba(246, 243, 238, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 10px 30px rgba(34, 32, 28, .14), 0 0 0 1px rgba(34, 32, 28, .06);
}
.site-header.is-bubble img { height: 34px !important; }
.site-header.is-bubble nav { gap: 22px !important; font-size: 14px !important; }
.site-header.is-bubble .header-cta { padding: 9px 18px !important; font-size: 14px !important; min-height: 40px !important; }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #22201C; background: transparent; color: #22201C; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.menu-toggle:focus-visible { outline: 3px solid #1F3B2D; outline-offset: 3px; }

@media (max-width: 960px) {
  .site-header nav {
    display: none !important; position: absolute; top: calc(100% + 8px); left: 12px; right: 12px;
    flex-direction: column; gap: 0 !important; background: #FFFDF9; border: 1px solid #E2DBCF; border-radius: 18px; padding: 8px; box-shadow: 0 18px 40px rgba(34, 32, 28, .16); font-size: 16px !important;
  }
  .site-header nav a { padding: 14px 16px; border-radius: 12px; }
  .site-header nav a:hover { background: #F2EDE5; }
  .site-header.menu-open nav { display: flex !important; }
  .menu-toggle { display: inline-flex; }
  .site-header-inner { gap: 10px; }
  .site-header .header-cta { margin-left: auto; }
  .site-header .header-cta { padding: 10px 16px !important; font-size: 14px !important; }
  .site-header.is-bubble { padding: 6px 6px 6px 16px !important; }
  .site-header.is-bubble .header-cta { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header img, .site-header nav, .site-header .header-cta { transition: none; }
}
