/* DraftSafe desktop enhancements (Nov 28 2026).
   Remove the <link> to this file and the <script> ds-enhance.js from the pages to turn everything off.
   Restore point before these changes: git branch backup-before-desktop-polish (commit ed4b237). */

/* Keyboard focus: clear ring on links, buttons and form fields */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #E8A0AA; outline-offset: 3px; border-radius: 4px;
}

/* ---------- 1. Sticky header (desktop only) ---------- */
.dsx-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(14, 12, 12, 0.97); border-bottom: 3px solid #861A2B;
  transform: translateY(-110%); transition: transform .28s ease;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.dsx-bar.dsx-on { transform: none; }
.dsx-bar-in {
  max-width: 1320px; margin: 0 auto; padding: 8px 28px;
  display: flex; align-items: center; gap: 28px;
  font-family: Inter, system-ui, sans-serif;
}
.dsx-bar-logo img { height: 52px; width: auto; display: block; }
.dsx-bar nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; flex: 1; }
.dsx-bar nav a { color: #FFFFFF; text-decoration: none; }
.dsx-bar nav a:hover, .dsx-bar nav a[aria-current="page"] { color: #E8A0AA; }
.dsx-bar-tel { color: #FFFFFF; text-decoration: none; font-weight: 700; white-space: nowrap; }
.dsx-bar-book {
  background: #861A2B; color: #FFFFFF; text-decoration: none; font-weight: 600;
  padding: 11px 18px; border-radius: 4px; white-space: nowrap;
}
.dsx-bar-book:hover { background: #5E1220; }
@media (max-width: 1199px) { .dsx-bar { display: none; } }

/* ---------- 3. Services dropdown (desktop only) ---------- */
.dsx-menu {
  position: fixed; z-index: 70;
  width: 560px; padding: 18px; border-radius: 10px; box-sizing: border-box;
  background: #FFFFFF; color: #222222; border: 1px solid #E8E2DA;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  font-family: Inter, system-ui, sans-serif;
}
.dsx-menu.dsx-open { opacity: 1; visibility: visible; transform: none; }
.dsx-menu::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.dsx-menu a {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 6px;
  color: #222222; text-decoration: none; font-weight: 400;
}
.dsx-menu a:hover, .dsx-menu a:focus-visible { background: #F6EEEF; }
.dsx-menu b { font-size: 15px; font-weight: 600; color: #222222; }
.dsx-menu b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #861A2B; margin-right: 9px; vertical-align: 2px; }
.dsx-menu span { font-size: 13px; line-height: 1.4; color: #6E6660; padding-left: 16px; }
.dsx-menu .dsx-all { grid-column: 1 / -1; border-top: 1px solid #EFE8E2; margin-top: 6px; padding-top: 12px; }
.dsx-menu .dsx-all b { color: #861A2B; }
.dsx-menu .dsx-all b::before { display: none; }
@media (min-width: 1200px) {
  header .ds-nav a[href="services.html"]::after, .dsx-bar nav a[href="services.html"]::after { content: " \25BE"; font-size: 10px; opacity: .8; }
}
@media (max-width: 1199px) { .dsx-menu { display: none !important; } }

/* ---------- 2. Photo viewer (mouse devices) ---------- */
@media (pointer: fine) {
  .dsx-zoomable { cursor: zoom-in; }
}
.dsx-lb {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 8, 8, .94);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px;
  padding: 40px 90px; box-sizing: border-box;
}
.dsx-lb img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.dsx-lb p { margin: 0; color: #E9E3DD; font: 500 15px/1.4 Inter, system-ui, sans-serif; text-align: center; }
.dsx-lb button {
  position: absolute; background: rgba(255,255,255,.08); color: #FFFFFF; border: 1px solid rgba(255,255,255,.25);
  width: 52px; height: 52px; border-radius: 999px; font-size: 22px; cursor: pointer;
}
.dsx-lb button:hover { background: rgba(255,255,255,.18); }
.dsx-lb .dsx-x { top: 22px; right: 22px; }
.dsx-lb .dsx-prev { left: 22px; top: 50%; margin-top: -26px; }
.dsx-lb .dsx-next { right: 22px; top: 50%; margin-top: -26px; }

/* ---------- 4. Gentle motion (desktop, only if the visitor allows motion) ---------- */
@media (min-width: 1024px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.dsx-anim .dsx-r { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  html.dsx-anim .dsx-r.dsx-in { opacity: 1; transform: none; }

  .ds-svc-c, .ds-gcard, .dsx-lift { transition: transform .22s ease, box-shadow .22s ease; }
  .ds-svc-c:hover, .ds-gcard:hover, .dsx-lift:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(34, 20, 16, .14); }
  .ds-svc-c img, .dsx-lift img { transition: transform .5s ease; }
  .ds-svc-c:hover img, .dsx-lift:hover img { transform: scale(1.04); }
}

/* iPhone Low Power Mode blocks autoplay: never show the big native play button on background videos (the poster shows instead) */
video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
video::-webkit-media-controls { display: none !important; }
video::-webkit-media-controls-overlay-play-button { display: none !important; }

/* phones held sideways (short screens): compact header so the page isn't hidden behind the logo */
@media (max-width: 1199px) and (max-height: 500px) {
  header .ds-logo, header .ds-hero-logo { height: 58px !important; }
  header .ds-csia img { width: 44px !important; height: 44px !important; }
  header > div { padding-top: 6px !important; padding-bottom: 6px !important; }
}
