:root {
  --app-bg: #fff8f1;
  --app-surface: #ffffff;
  --app-ink: #1f1f1f;
  --app-muted: #5f4c3c;
  --app-accent: #8a4f12;
  --app-accent-strong: #6a3408;
  --app-border: rgba(138, 79, 18, 0.16);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--app-ink);
  background: linear-gradient(135deg, #fffdf9 0%, var(--app-bg) 100%);
  line-height: 1.6;
}
html,
body {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100% !important;
  min-width: 0 !important;
}
body:not(.responsive) #site-root,
body:not(.responsive) #SITE_CONTAINER,
body:not(.responsive) .masterPage,
body:not(.responsive) #masterPage,
body:not(.responsive) #pageBackground_tuckg,
body:not(.responsive) #bgLayers_pageBackground_tuckg,
body:not(.responsive) #bgMedia_pageBackground_tuckg,
body:not(.responsive) .site-root,
body:not(.responsive) .masterPage,
body:not(.responsive) .mesh-layout.masterPage,
body:not(.responsive) .SITE_HEADER,
body:not(.responsive) .WIX_HEADER,
body:not(.responsive) .wixui-page,
body:not(.responsive) .lvxhkV,
body:not(.responsive) .cKxVkc {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
}
body:not(.responsive) #site-root,
body:not(.responsive) #SITE_CONTAINER {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
body:not(.responsive) #site-root {
  min-width: 0 !important;
}
body:not(.responsive) #SITE_CONTAINER {
  min-width: 0 !important;
}
body,
html {
  overflow-x: hidden !important;
  width: 100% !important;
}
body.device-mobile-optimized:not(.responsive) #SITE_CONTAINER,
body.device-mobile-optimized:not(.responsive) #site-root {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
a { color: inherit; }

.app-shell-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 248, 241, 0.95);
  border-bottom: 1px solid var(--app-border);
  backdrop-filter: blur(12px);
}

.app-shell-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.app-shell-brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--app-accent), #c77b2f);
  color: white;
  font-weight: 700;
}

.app-shell-nav {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}
.app-shell-nav a {
  text-decoration: none;
  color: var(--app-muted);
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  transition: background 200ms ease, color 200ms ease;
}
.app-shell-nav a:hover,
.app-shell-nav a.is-active {
  background: rgba(138, 79, 18, 0.12);
  color: var(--app-accent-strong);
}

.app-shell-contact-icons {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}
.app-shell-menu-icons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  align-items: center;
  margin: 0.75rem auto 0;
  padding: 0.65rem 0;
  max-width: 680px;
}
.app-shell-contact-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  padding: 0.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(138, 79, 18, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.app-shell-contact-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(106, 52, 8, 0.15);
  background: rgba(255, 255, 255, 1);
}
.app-shell-contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 820px) {
  .app-shell-contact-icons,
  .app-shell-menu-icons-row {
    order: 4;
    width: 100%;
    justify-content: center;
    margin-top: 0.75rem;
  }
}

/* Floating Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 360px;
  height: 500px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  z-index: 9999;
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.chat-widget.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.chat-header {
  display: flex;
  align-items: center;
  padding: 16px;
  background-color: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
}

.chat-title-container {
  flex-grow: 1;
}

.chat-title {
  font-weight: bold;
  font-size: 16px;
  color: #111;
}

.chat-subtitle {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #2ecc71;
  border-radius: 50%;
  display: inline-block;
}

.chat-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  padding: 0 4px;
}

.chat-body {
  flex: 1;
  background-color: #e5e5e5;
  padding: 16px;
  overflow-y: auto;
}

.chat-footer {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #ffffff;
  border-top: 1px solid #f0f0f0;
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: #333;
}

.chat-input::placeholder {
  color: #888;
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  color: #111;
}

.chat-trigger-box {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  min-width: 180px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  color: #ffffff;
}

.chat-trigger-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  background: #000000;
}

.chat-trigger-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-trigger-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

/* Center the main Wix header menu items */
#comp-m4io81b3 .StylableHorizontalMenu3372578893__root {
  margin: 0 auto 0 2.5rem !important;
  padding-left: 0.75rem !important;
  width: auto !important;
}
#comp-m4io81b3 .StylableHorizontalMenu3372578893__menu {
  justify-content: flex-start !important;
  gap: 1rem !important;
}
#comp-m4io81b3 .StylableHorizontalMenu3372578893__menuItem .itemDepth02233374943__container {
  justify-content: center !important;
}
#comp-m4io81b3 .itemDepth02233374943__label {
  text-align: center !important;
}

.app-shell-cta {
  text-decoration: none;
  background: linear-gradient(135deg, var(--app-accent), var(--app-accent-strong));
  color: white;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(106, 52, 8, 0.2);
}

.app-shell-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 1300;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  background: linear-gradient(135deg, var(--app-accent), var(--app-accent-strong));
  color: white;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(106, 52, 8, 0.22);
  font-weight: 700;
}

.chat-page-shell {
  max-width: 980px;
  margin: 2rem auto;
  padding: 0 1rem 3rem;
}
.chat-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(31, 31, 31, 0.08);
  overflow: hidden;
}
.chat-hero {
  padding: 1.4rem 1.5rem 1rem;
  background: linear-gradient(135deg, rgba(138,79,18,0.16), rgba(199,123,47,0.08));
  border-bottom: 1px solid var(--app-border);
}
.chat-hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
}
.chat-hero p { margin: 0; color: var(--app-muted); }
.chat-body { display: grid; grid-template-columns: 1.2fr 0.8fr; }
.chat-window {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 420px;
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow: auto;
  padding-right: 0.2rem;
}
.chat-bubble {
  max-width: 78%;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  line-height: 1.5;
}
.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--app-accent), var(--app-accent-strong));
  color: white;
}
.chat-bubble.assistant {
  align-self: flex-start;
  background: #f8efe7;
  color: var(--app-ink);
}
.chat-bubble.system {
  align-self: center;
  max-width: 92%;
  background: #fff2dc;
  color: var(--app-muted);
  font-size: 0.92rem;
  border: 1px solid rgba(138, 79, 18, 0.12);
}
.chat-form {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
}
.chat-form input {
  flex: 1;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font: inherit;
}
.chat-form button {
  border: 0;
  background: linear-gradient(135deg, var(--app-accent), var(--app-accent-strong));
  color: white;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font-weight: 700;
  cursor: pointer;
}
.chat-note {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.9rem;
}
.chat-sidebar {
  padding: 1.25rem;
  border-left: 1px solid var(--app-border);
  background: #fcf6ef;
}
.chat-sidebar h2 {
  margin-top: 0;
  font-size: 1.1rem;
}
.chat-sidebar ul { padding-left: 1rem; color: var(--app-muted); }

@media (max-width: 820px) {
  .app-shell-header {
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0.9rem 0.9rem 1rem;
    justify-content: center;
  }
  .app-shell-brand {
    width: 100%;
    justify-content: center;
  }
  .app-shell-nav {
    width: 100%;
    justify-content: center;
    order: 3;
  }
  .app-shell-contact-icons {
    width: 100%;
    justify-content: center;
    order: 4;
    margin-top: 0.5rem;
  }
  .app-shell-cta {
    width: 100%;
    text-align: center;
  }
  .app-shell-fixed-contact-bar {
    display: flex;
  }
  .chat-page-shell {
    padding: 0 0.75rem 2rem;
    margin: 1rem auto 2rem;
  }
  .chat-body { grid-template-columns: 1fr; }
  .chat-window {
    min-height: 320px;
    padding: 0.8rem;
  }
  .chat-bubble {
    max-width: 100%;
    font-size: 0.95rem;
  }
  .chat-form {
    flex-direction: column;
  }
  .chat-form button {
    width: 100%;
  }
  .chat-sidebar {
    border-left: 0;
    border-top: 1px solid var(--app-border);
    padding: 1rem;
  }
  .app-shell-fab {
    right: 0.8rem;
    bottom: 0.8rem;
  }
}

.app-shell-fixed-contact-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  display: none;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(138, 79, 18, 0.16);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
}

.app-shell-fixed-contact-bar .app-shell-contact-icon {
  width: 46px;
  height: 46px;
  padding: 0.35rem;
}

@media (max-width: 820px) {
  .app-shell-fixed-contact-bar {
    display: flex;
  }
  body {
    padding-bottom: 4.5rem;
  }
}

@media (min-width: 821px) {
  .app-shell-fixed-contact-bar {
    display: none !important;
  }
}
