/*
  The site header for the hand-built and Airtable-built case study pages.

  These pages are static HTML outside the React app, so they cannot use
  src/components/SiteHeader.jsx. This file and site-header.js reproduce it:
  same links, same Packages dropdown, same mobile menu and floating button.
  Change one, change the other.
*/
.shd, .smm-panel, .smm-fab { line-height: 1.5; font-family: 'Manrope', system-ui, sans-serif; box-sizing: border-box; }
.shd *, .smm-panel *, .smm-fab * { box-sizing: border-box; }

.shd {
  position: sticky; top: 0; z-index: 300;
  background: rgba(251,248,241,0.94);
  -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #C4B8A6;
  transform: translateY(0); transition: transform 0.38s cubic-bezier(.4,.6,.2,1);
}
.shd.is-hidden { transform: translateY(-102%); }
.shd.is-menu { z-index: 500; transform: translateY(0); }

.shd-in { display: flex; align-items: center; justify-content: space-between; gap: 26px;
  max-width: 1240px; margin: 0 auto; padding: 14px 28px; }
.shd-brand { display: block; flex-shrink: 0; height: 34px; width: 24px; overflow: hidden;
  transition: width .55s cubic-bezier(.76,0,.24,1); }
.shd-brand:hover, .shd-brand:focus-visible { width: 82px; }
.shd-brand img { height: 34px; width: auto; max-width: none; display: block; }

.shd-links { display: flex; align-items: center; gap: 36px; line-height: 1; position: static; }
.shd-link { display: inline-flex; align-items: center; line-height: 1; padding: 0; border: 0;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #7A6E60; text-decoration: none; transition: color 0.18s ease; white-space: nowrap; opacity: 1; }
.shd-link:hover, .shd-link.is-current { color: #3E2E24; }

.shd-drop { position: relative; display: inline-flex; align-items: center; }
.shd-drop .shd-link::after { content: ''; width: 5px; height: 5px; margin-left: 7px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
  transition: transform .2s ease; }
.shd-drop:hover .shd-link::after, .shd-drop:focus-within .shd-link::after { transform: rotate(225deg); margin-top: 3px; }
.shd-sub { position: absolute; top: 100%; left: 50%; padding-top: 18px; min-width: 200px;
  opacity: 0; visibility: hidden; transform: translate(-50%, -4px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.shd-drop:hover .shd-sub, .shd-drop:focus-within .shd-sub {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s; }
.shd-sub-in { background: #FBF8F1; border: 1px solid #C4B8A6; border-radius: 14px; padding: 8px;
  box-shadow: 0 14px 34px rgba(43,42,40,0.14); display: flex; flex-direction: column; }
.shd-sub a { display: block; padding: 10px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 500;
  letter-spacing: 0; text-transform: none; color: #3E2E24; text-decoration: none; white-space: nowrap;
  border: 0; opacity: 1; transition: background .15s ease, color .15s ease; }
.shd-sub a:hover, .shd-sub a:focus-visible { background: #EFEBE2; color: #5E86A6; outline: none; }

.shd-right { display: flex; align-items: center; gap: 18px; }
.shd-cta { display: inline-block; padding: 12px 22px; border-radius: 99px; background: #3E2E24;
  color: #F9F4E8; font-size: 13px; font-weight: 500; letter-spacing: 0.005em; text-transform: none;
  text-decoration: none; white-space: nowrap; transition: background 0.2s ease, transform 0.18s ease; }
.shd-cta:hover { background: #4A3930; transform: scale(1.03); }

.shd-burger { display: none; position: relative; width: 40px; height: 40px; flex-shrink: 0;
  background: none; border: none; padding: 0; cursor: pointer; }
.shd-burger span, .smm-fab span { position: absolute; left: 50%; top: 50%; margin: -0.8px 0 0 -10px;
  width: 20px; height: 1.6px; border-radius: 2px; background: #3E2E24;
  transition: transform .28s ease, opacity .2s ease, background .25s ease; }
.shd-burger .b1, .smm-fab .b1 { transform: translateY(-6px); }
.shd-burger .b3, .smm-fab .b3 { transform: translateY(6px); }
.shd-burger.is-open .b1, .smm-fab.is-open .b1 { transform: rotate(45deg); }
.shd-burger.is-open .b2, .smm-fab.is-open .b2 { opacity: 0; }
.shd-burger.is-open .b3, .smm-fab.is-open .b3 { transform: rotate(-45deg); }

.smm-panel {
  position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: 400;
  background: #FBF8F1; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 84px) 24px calc(env(safe-area-inset-bottom, 0px) + 92px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  opacity: 0; transform: translateY(-10px); visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.smm-panel.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto;
  transition: opacity .3s ease, transform .3s ease, visibility 0s; }
.smm-nav { display: flex; flex-direction: column; position: static; }
.smm-link { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 400;
  font-size: 27px; line-height: 1.1; color: #3E2E24; text-decoration: none; letter-spacing: 0; text-transform: none;
  padding: 15px 2px; border-bottom: 1px solid rgba(62,46,36,0.13); opacity: 1; }
.smm-link.has-sub { border-bottom: 0; padding-bottom: 4px; }
.smm-sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0 18px; border-bottom: 1px solid rgba(62,46,36,0.13); }
.smm-sub a { font-size: 13px; font-weight: 500; color: #3E2E24; text-decoration: none; padding: 8px 13px;
  border: 1px solid #C4B8A6; border-radius: 99px; background: #F5F1E8; letter-spacing: 0; text-transform: none; opacity: 1; }
.smm-foot { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.smm-cta { display: block; padding: 18px 24px; border-radius: 99px; background: #3E2E24; color: #F9F4E8;
  text-align: center; font-size: 15px; font-weight: 500; text-decoration: none; }
.smm-small { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.smm-small a { font-size: 13px; color: #7A6E60; text-decoration: none; }

.smm-fab { display: none; }

@media (min-width: 901px) { .smm-panel { display: none; } }
@media (max-width: 900px) {
  .shd-links { display: none; }
  .shd-burger { display: block; }
  .shd-in { padding: 11px 16px; gap: 10px; }
  .shd-cta { padding: 11px 16px; }
  .shd-cta.is-hidden { display: none; }
  .shd-brand { height: 44px; width: 86px; display: flex; align-items: center; overflow: visible; }
  .shd-brand:hover, .shd-brand:focus-visible { width: 86px; }
  .shd-brand img { height: 26px; }
  .shd-right { gap: 10px; }
  .smm-fab {
    display: block; position: fixed; right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 450;
    width: 54px; height: 54px; border-radius: 999px; padding: 0; cursor: pointer;
    background: rgba(251,248,241,0.95);
    -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
    border: 1.5px solid #C4B8A6; box-shadow: 0 6px 22px rgba(43,42,40,0.22);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px) scale(.92);
    transition: background .25s ease, border-color .25s ease, opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .smm-fab.is-shown { opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    transition: background .25s ease, border-color .25s ease, opacity .25s ease, transform .25s ease, visibility 0s; }
  .smm-fab.is-open { background: #3E2E24; border-color: #3E2E24; }
  .smm-fab.is-open span { background: #F0EEE9; }
}
@media (prefers-reduced-motion: reduce) {
  .shd, .smm-panel, .smm-fab, .shd-burger span, .smm-fab span { transition: none; }
}
