/* Serene Sanctuary — shared custom styles for TJ Nails (Brownsburg, IN) */

html { scroll-behavior: smooth; }

/* Visible keyboard focus for all interactive elements */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #536257;
  outline-offset: 3px;
  border-radius: 2px;
}

/* SMS opt-in disclosure — slightly larger than footer compliance text for legibility */
.disclosure-text {
  font-family: "Source Sans 3", sans-serif;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* Spa-menu service rows with dotted leader lines */
.service-list-item {
  display: flex;
  align-items: baseline;
  margin-bottom: 1rem;
}
.service-list-name { flex-shrink: 0; padding-right: 0.5rem; }
.service-list-leader {
  flex-grow: 1;
  border-bottom: 1px dotted #c3c8c2;
  margin: 0 0.5rem;
  opacity: 0.5;
}
.service-list-price {
  flex-shrink: 0;
  padding-left: 0.5rem;
  font-family: "Playfair Display", serif;
}

/* Ghost shadow per DESIGN.md — 2% opacity Charcoal Ink, no offset */
.ambient-shadow { box-shadow: 0 2px 24px 0 rgba(23, 27, 25, 0.02), 0 30px 60px -15px rgba(83, 98, 87, 0.08); }

/* Sage-styled custom checkboxes for the SMS opt-in form */
.consent-check {
  appearance: none;
  -webkit-appearance: none;
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  margin-top: 0.15rem;
  border: 1.5px solid #737873;
  border-radius: 0.25rem;
  background-color: #ffffff;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s, border-color 0.2s;
}
.consent-check:checked {
  background-color: #536257;
  border-color: #536257;
}
.consent-check:checked::after {
  content: "";
  position: absolute;
  left: 0.46rem;
  top: 0.2rem;
  width: 0.3rem;
  height: 0.6rem;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent-check:focus-visible {
  outline: 2px solid #536257;
  outline-offset: 2px;
}

/* Subtle 1px parchment-border inputs per DESIGN.md SMS Opt-in Form spec */
.field-input {
  background-color: #fbf9f4;
  border: 1px solid #EFE9E1;
  border-radius: 0.25rem;
  padding: 0.75rem 1rem;
  width: 100%;
  font-size: 16px;
  color: #1b1c19;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-input:focus {
  outline: none;
  border-color: #536257;
  box-shadow: 0 0 0 3px rgba(83, 98, 87, 0.10);
}

/* Mobile nav drawer */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }

/* Responsive embed wrappers */
.embed-frame {
  width: 100%;
  border: 0;
  display: block;
}

/* Language picker */
.lang-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #737873;
  transition: color 0.3s;
}
.lang-btn:hover { color: #1b1c19; }
.lang-btn[aria-pressed="true"] {
  color: #1b1c19;
  font-weight: 700;
}
.lang-btn:focus-visible {
  outline: 2px solid #536257;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Readability lead-ins — hidden unless matching language is active */
.lang-note {
  font-size: 13px;
  line-height: 1.6;
  color: #536257;
  font-style: italic;
}

/* ---- Gallery ---- */

/* Masonry columns for the full gallery page */
.gallery-masonry { column-gap: 24px; }
.gallery-masonry > * {
  break-inside: avoid;
  margin-bottom: 24px;
}
@media (min-width: 640px)  { .gallery-masonry { column-count: 2; } }
@media (min-width: 1024px) { .gallery-masonry { column-count: 3; } }

/* Photo tile — gentle zoom on hover */
.gallery-tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 24px 0 rgba(23, 27, 25, 0.02);
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-tile:hover img { transform: scale(1.05); }
.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 27, 25, 0.15), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.gallery-tile:hover::after { opacity: 1; }
.gallery-tile:focus-visible {
  outline: 2px solid #536257;
  outline-offset: 3px;
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(23, 27, 25, 0.92);
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 720px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}
.lightbox-btn {
  position: absolute;
  background: rgba(251, 249, 244, 0.92);
  color: #171b19;
  border: 0;
  border-radius: 9999px;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.lightbox-btn:hover { background: #ffffff; transform: scale(1.06); }
.lightbox-btn:focus-visible { outline: 2px solid #d6e7d9; outline-offset: 3px; }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.06); }
@media (max-width: 640px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
