/* Shared Tiny chrome — header, drawer, footer */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px var(--pad-x, 64px);
  background: var(--cream, #f7f5ee);
  border-bottom: 1px solid rgba(100, 124, 110, 0.14);
}

.site-header__logo {
  justify-self: start;
}

.site-header__logo img {
  height: 48px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 42px;
  font-family: "Jost", var(--font-display, system-ui), sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.site-nav a {
  color: var(--sage, #647c6e);
  text-decoration: none;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-current {
  color: var(--deep, #3d4f45);
}

.nav-drop {
  position: relative;
}

.nav-drop__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-drop__toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.nav-drop__menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  padding: 8px 0;
  background: var(--cream, #f7f5ee);
  border: 1px solid rgba(100, 124, 110, 0.18);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(61, 79, 69, 0.12);
  z-index: 120;
}

.nav-drop:hover .nav-drop__menu,
.nav-drop:focus-within .nav-drop__menu,
.nav-drop.is-open .nav-drop__menu {
  display: block;
}

.nav-drop__menu a {
  display: block;
  padding: 10px 16px;
  white-space: nowrap;
  font-size: 14px;
}

.site-header__cta,
.menu-toggle {
  justify-self: end;
}

.site-header__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header__caption {
  font-size: 13px;
  color: rgba(51, 65, 58, 0.6);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle__bars {
  width: 26px;
  height: 2px;
  background: var(--sage, #647c6e);
  box-shadow: 0 7px 0 var(--sage, #647c6e), 0 -7px 0 var(--sage, #647c6e);
  position: relative;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
  box-shadow: none;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sage, #647c6e);
  transform: rotate(-90deg);
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(47, 61, 53, 0.45);
}

.nav-drawer.is-open {
  display: block;
}

.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--cream, #f7f5ee);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}

.nav-drawer__panel a {
  display: block;
  padding: 14px 8px;
  color: var(--deep, #3d4f45);
  text-decoration: none;
  font-size: 17px;
  border-bottom: 1px solid rgba(100, 124, 110, 0.14);
}

.nav-drawer__close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--sage, #647c6e);
  cursor: pointer;
  padding: 4px 8px;
  margin-bottom: 8px;
}

.site-footer {
  padding: 40px var(--pad-x, 64px);
  background: var(--deep, #3d4f45);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 32px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-footer__brand img {
  height: 48px;
  width: auto;
}

.site-footer__brand span {
  font-size: 14px;
}

.site-footer__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
}

.site-footer__pages a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.site-footer__pages a:hover,
.site-footer__pages a.is-current {
  color: #fff;
}

.site-footer__links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
}

.footer-link:hover {
  color: #fff;
}

.footer-link__icon {
  width: 38px;
  height: 38px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-phone {
  display: none;
}

.wa-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
  text-decoration: none;
}

.wa-float svg {
  width: 30px;
  height: 30px;
}

.wa-float:hover,
.wa-float:focus-visible {
  opacity: 1;
  color: #fff;
}

/* Inside the builder wizard the floating bubble overlaps the fixed CTA (§3). */
body[data-page="builder"] .wa-float,
body.is-wizard .wa-float {
  display: none;
}

@media (max-width: 1100px) {
  .site-header__caption {
    display: none;
  }

  .site-nav,
  .site-header__cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 24px;
  }
}

@media (max-width: 900px) {
  .site-nav,
  .site-header__cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 24px;
  }

  .site-header__logo img {
    height: 42px;
  }

  .site-footer {
    padding: 26px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-footer__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-footer__brand img {
    height: 46px;
  }

  .site-footer__pages {
    gap: 16px;
  }

  .site-footer__links {
    gap: 12px;
  }

  .footer-link__label {
    display: none;
  }

  .footer-phone {
    display: inline;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-left: 4px;
  }
}

/* Post-save success modal */
body.tiny-success-open {
  overflow: hidden;
}

.tiny-success-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 24px;
}

.tiny-success-modal[hidden] {
  display: none;
}

.tiny-success-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(34, 44, 38, 0.55);
  cursor: pointer;
}

.tiny-success-modal__panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 28px 24px 20px;
  border-radius: 18px;
  background: var(--cream, #f7f5ee);
  color: #33413a;
  box-shadow: 0 24px 60px rgba(34, 44, 38, 0.28);
}

.tiny-success-modal__x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--muted, #8a9c8f);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.tiny-success-modal__eyebrow {
  margin: 0 0 8px;
  font-family: "Jost", var(--font-display, system-ui), sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted, #8a9c8f);
}

.tiny-success-modal__panel h2 {
  margin: 0 0 8px;
  font-family: "Jost", var(--font-display, system-ui), sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--deep, #3d4f45);
}

.tiny-success-modal__sub {
  margin: 0 0 16px;
  line-height: 1.45;
  color: #4a5a52;
}

.tiny-success-modal__code {
  margin: 0 0 18px;
  font-family: "Jost", var(--font-display, system-ui), sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sage, #647c6e);
}

.tiny-success-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tiny-success-modal__actions .btn {
  width: 100%;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--sage, #647c6e);
  background: var(--sage, #647c6e);
  color: #fff;
  font-family: "Jost", var(--font-display, system-ui), sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.tiny-success-modal__actions .btn--outline {
  background: transparent;
  color: var(--deep, #3d4f45);
  border-color: rgba(100, 124, 110, 0.35);
}

.tiny-success-modal__actions .btn--outline:hover {
  background: rgba(100, 124, 110, 0.08);
  color: var(--deep, #3d4f45);
}

.tiny-success-modal__primary {
  background: var(--sage, #647c6e);
  color: #fff;
  border: 1px solid var(--sage, #647c6e);
}

.tiny-success-modal__primary:hover {
  background: var(--sage-hover, #586e62);
  color: #fff;
}

.tiny-success-modal__danger {
  color: #8a3d3d;
  border-color: rgba(138, 61, 61, 0.35);
}

.tiny-success-modal__status {
  min-height: 1.2em;
  margin: 12px 0 0;
  font-size: 0.92rem;
}

.tiny-success-modal__status.is-error {
  color: #8a3d3d;
}

.tiny-success-modal__status.is-success {
  color: var(--sage, #647c6e);
}

.tiny-success-modal__dismiss {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--muted, #8a9c8f);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
