/* ---------------------------------------------------------------
   Site chrome: top bar, header, footer, mobile booking bar, WhatsApp
   float. Loaded on every page. All classes start with "sx-" so the
   older page stylesheets can't clash with them.
---------------------------------------------------------------- */

:root {
  --sx-ink: #17202c;
  --sx-ink-2: #3c4655;
  --sx-muted: #667085;
  --sx-line: #eadfd3;
  --sx-sand: #fbf6f0;
  --sx-white: #ffffff;
  --sx-sun: #e8590c;
  --sx-sun-dark: #c2410c;
  --sx-wa: #128c4b;
  --sx-wa-dark: #0e7340;
  --sx-night: #121a24;
  --sx-wrap: 1200px;
}

.sx-wrap {
  max-width: var(--sx-wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.sx-i {
  width: 18px;
  height: 18px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

/* Buttons (shared with the page styles) */
.sx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid transparent;
  border-radius: 10px;
  font: 700 15px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  box-sizing: border-box;
}
.sx-btn:hover { transform: translateY(-1px); }
.sx-btn:focus-visible { outline: 3px solid var(--sx-sun); outline-offset: 2px; }
.sx-btn-wa { background: var(--sx-wa); color: #fff !important; }
.sx-btn-wa:hover { background: var(--sx-wa-dark); color: #fff !important; }
.sx-btn-book { background: var(--sx-sun-dark); color: #fff !important; }
.sx-btn-book:hover { background: #9a3412; color: #fff !important; }
.sx-btn-call { background: var(--sx-ink); color: #fff !important; }
.sx-btn-call:hover { background: #000; color: #fff !important; }
.sx-btn-ghost { background: transparent; color: var(--sx-ink) !important; border-color: var(--sx-line); }
.sx-btn-ghost:hover { border-color: var(--sx-ink); color: var(--sx-ink) !important; }

/* Top bar */
.sx-topbar {
  background: var(--sx-night);
  color: #d6dbe2;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.sx-topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.sx-topbar a { color: #d6dbe2 !important; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.sx-topbar a:hover { color: #fff !important; }
.sx-topbar-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sx-topbar .sx-i { width: 15px; height: 15px; }

/* Header */
.sx-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--sx-line);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.sx-header-in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}
.sx-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sx-ink) !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  flex: none;
}
.sx-logo img {
  width: 56px !important;
  height: 56px !important;
  max-width: none !important;
  margin: 0 !important;
  display: block;
}
.sx-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.sx-nav a {
  color: var(--sx-ink-2) !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 11px;
  border-radius: 8px;
}
.sx-nav a:hover { color: var(--sx-sun-dark) !important; background: var(--sx-sand); }
.sx-nav a[aria-current="page"] { color: var(--sx-sun-dark) !important; }
.sx-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.sx-actions .sx-btn { min-height: 42px; padding: 8px 14px; }
.sx-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--sx-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.sx-menu-btn span { display: block; width: 20px; height: 2px; background: var(--sx-ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.sx-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sx-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sx-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .sx-actions .sx-btn-call span { display: none; }
  .sx-nav a { padding: 10px 8px; font-size: 14px; }
}
@media (max-width: 920px) {
  .sx-topbar { display: none; }
  .sx-header-in { min-height: 64px; gap: 10px; }
  .sx-logo img { width: 46px !important; height: 46px !important; }
  .sx-logo { font-size: 13px; }
  .sx-actions { margin-left: auto; }
  .sx-menu-btn { display: inline-flex; }
  .sx-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
    background: #fff;
    border-bottom: 1px solid var(--sx-line);
    box-shadow: 0 16px 30px rgba(23, 32, 44, 0.12);
  }
  .sx-nav.is-open { display: flex; }
  .sx-nav a { font-size: 17px; padding: 14px 8px; border-bottom: 1px solid var(--sx-sand); border-radius: 0; }
}
@media (max-width: 420px) {
  .sx-logo span { display: none; }
  .sx-actions .sx-btn-call { display: none; }
}

/* Footer */
.sx-footer {
  background: var(--sx-night);
  color: #c3cad4;
  font: 15px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  padding-block: 56px 0;
  margin-top: 0;
}
.sx-footer a { color: #c3cad4 !important; text-decoration: none !important; }
.sx-footer a:hover { color: #fff !important; }
.sx-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.sx-footer h2, .sx-footer h3 { color: #fff; margin: 0 0 14px; font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.sx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sx-footer li { margin: 0; padding: 0; }
.sx-footer p { margin: 0 0 16px; color: #a9b2bf; }
.sx-footer .sx-logo { color: #fff !important; margin-bottom: 14px; }
.sx-social { display: flex; gap: 10px; flex-wrap: wrap; }
.sx-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
}
.sx-social a:hover { background: var(--sx-sun-dark); }
.sx-contact-list a, .sx-contact-list span { display: inline-flex; align-items: center; gap: 10px; }
.sx-footer-bottom {
  margin-top: 40px;
  padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 14px;
  color: #8b95a3;
}
@media (max-width: 980px) {
  .sx-footer-grid { grid-template-columns: 1fr 1fr; }
  .sx-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .sx-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Mobile booking bar + desktop WhatsApp float */
.sx-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  gap: 8px;
  padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  background: #fff;
  border-top: 1px solid var(--sx-line);
  box-shadow: 0 -8px 24px rgba(23, 32, 44, 0.1);
}
.sx-bar .sx-btn { flex: 1; padding: 10px 8px; font-size: 15px; }
.sx-wa-float {
  position: fixed;
  right: max(22px, env(safe-area-inset-right, 0px));
  bottom: max(22px, env(safe-area-inset-bottom, 0px));
  z-index: 950;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(18, 140, 75, 0.35);
  transition: transform 0.2s ease;
}
.sx-wa-float:hover { transform: scale(1.06); }
.sx-wa-float .sx-i { width: 30px; height: 30px; }
@media (max-width: 920px) {
  .sx-bar { display: flex; }
  .sx-wa-float { display: none; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* Hide the old floating button and old header pieces if any page still has them */
.floating-buttons { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .sx-btn, .sx-wa-float, .sx-menu-btn span { transition: none; }
  .sx-btn:hover, .sx-wa-float:hover { transform: none; }
}
