/**
 * AesthetiX floating inquiry — chat-style FAB + drawer
 */
:root {
  --axf-emerald: #1b3022;
  --axf-cream: #f5f2eb;
  --axf-ink: #2a2520;
  --axf-gold: #a67c52;
  --axf-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.axf-fab {
  position: fixed;
  z-index: 99980;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.15rem, env(safe-area-inset-bottom));
  width: 3.35rem;
  height: 3.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--axf-emerald);
  color: #f7f3eb;
  box-shadow:
    0 10px 28px rgba(27, 48, 34, 0.28),
    0 2px 8px rgba(42, 37, 32, 0.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s var(--axf-ease), background 0.2s ease, box-shadow 0.28s ease;
}

.axf-fab:hover {
  background: #23402f;
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px rgba(27, 48, 34, 0.32),
    0 4px 10px rgba(42, 37, 32, 0.14);
}

.axf-fab:focus-visible {
  outline: 2px solid var(--axf-gold);
  outline-offset: 3px;
}

.axf-fab[aria-expanded="true"] {
  background: #15241a;
}

.axf-fab__icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.axf-fab__icon--close {
  display: none;
}

.axf-fab[aria-expanded="true"] .axf-fab__icon--open {
  display: none;
}

.axf-fab[aria-expanded="true"] .axf-fab__icon--close {
  display: block;
}

.axf-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99970;
  background: rgba(24, 28, 24, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--axf-ease);
}

.axf-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.axf-drawer {
  position: fixed;
  z-index: 99990;
  top: 0;
  right: 0;
  width: min(28.5rem, 100vw);
  height: 100%;
  height: 100dvh;
  background: var(--axf-cream);
  color: var(--axf-ink);
  box-shadow: -18px 0 48px rgba(27, 48, 34, 0.18);
  transform: translateX(104%);
  transition: transform 0.36s var(--axf-ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.axf-drawer.is-open {
  transform: translateX(0);
}

.axf-drawer__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(61, 61, 61, 0.1);
  background: rgba(250, 248, 244, 0.96);
}

.axf-drawer__title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--axf-emerald);
}

.axf-drawer__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(42, 37, 32, 0.62);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.axf-drawer__close:hover {
  background: rgba(27, 48, 34, 0.06);
  color: var(--axf-ink);
}

.axf-drawer__frame {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: var(--axf-cream);
}

body.axf-lock {
  overflow: hidden;
}

@media (max-width: 640px) {
  .axf-drawer {
    width: 100vw;
  }

  .axf-fab {
    width: 3.1rem;
    height: 3.1rem;
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.95rem, env(safe-area-inset-bottom));
  }
}

/* Contact page when embedded in float drawer */
html[data-axc-embed="1"],
html[data-axc-embed="1"] body.ax-contact-page {
  background: var(--axf-cream) !important;
  min-height: 100%;
}

html[data-axc-embed="1"] .tf-work-foot,
html[data-axc-embed="1"] .ax-subnav__start,
html[data-axc-embed="1"] .ax-subnav__nav,
html[data-axc-embed="1"] .ax-subnav__note {
  display: none !important;
}

html[data-axc-embed="1"] .ax-subnav {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid rgba(61, 61, 61, 0.1);
  background: rgba(250, 248, 244, 0.96);
}

html[data-axc-embed="1"] .ax-subnav__inner {
  display: flex;
  justify-content: flex-end;
  padding: 0.55rem 0.85rem;
  max-width: none;
}

html[data-axc-embed="1"] .axc-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.85rem 1rem 2rem;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

html[data-axc-embed="1"] .axc-aside {
  padding: 0;
}

html[data-axc-embed="1"] .axc-title {
  font-size: clamp(1.45rem, 5vw, 1.85rem);
}

html[data-axc-embed="1"] .axc-services {
  display: none;
}

html[data-axc-embed="1"] .axc-panel {
  box-shadow: none;
  border: 1px solid rgba(61, 61, 61, 0.1);
}
