/* ==========================================================================
   Le Nails — demo salon site
   Palette: creamy ivory, espresso/plum ink, dusty rose, muted mauve, gold accent
   ========================================================================== */

:root {
  --ivory: #faf5ec;
  --ivory-deep: #f3ece0;
  --ink: #2c1f24;
  --ink-soft: #4a3840;
  --plum: #3d2733;
  --rose: #c98a94;
  --rose-deep: #a6616f;
  --mauve: #8a6b73;
  --mauve-pale: #e9dbd8;
  --gold: #b08a4e;
  --gold-soft: #d9bd8a;
  --line: #e2d5c7;
  --white: #ffffff;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(44, 31, 36, 0.08);
  --shadow-md: 0 8px 24px rgba(44, 31, 36, 0.12);
  --shadow-lg: 0 20px 48px rgba(44, 31, 36, 0.18);

  --maxw: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--plum); margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--plum);
  color: var(--ivory);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}
.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 600;
  margin: 0 0 0.6em;
}
.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mauve);
  background: var(--mauve-pale);
  border-radius: 999px;
  padding: 3px 10px;
  margin-top: 4px;
}
.section-lede {
  max-width: 56ch;
  color: var(--ink-soft);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--plum);
  color: var(--ivory);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #4a2f3e; box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--plum);
  border-color: var(--plum);
}
.btn-ghost:hover { background: var(--plum); color: var(--ivory); }
.btn-lg { padding: 0 28px; min-height: 50px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--plum);
  min-height: 44px;
}
.logo-mark { color: var(--gold); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
}
.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--plum);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--ivory);
  padding: 24px 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  overflow-y: auto;
}
.primary-nav.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}
.primary-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}
.primary-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-cta { width: 100%; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    inset: auto;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 28px;
    overflow: visible;
  }
  .primary-nav ul {
    flex-direction: row;
    gap: 24px;
    margin-bottom: 0;
  }
  .primary-nav a {
    min-height: auto;
    border-bottom: none;
    font-size: 0.96rem;
    position: relative;
    padding-bottom: 2px;
  }
  .primary-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -3px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.2s ease;
  }
  .primary-nav a:hover::after { transform: scaleX(1); }
  .nav-cta { width: auto; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 78vh;
  color: var(--ivory);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #6b3347 0%, #3d2733 55%, #2c1f24 100%);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
  mix-blend-mode: multiply;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(30, 18, 22, 0.88) 0%, rgba(30, 18, 22, 0.35) 55%, rgba(30, 18, 22, 0.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 120px 20px 56px;
  margin: 0 auto 0 0;
}
@media (min-width: 640px) {
  .hero-content { padding-left: 48px; }
}
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 {
  color: var(--ivory);
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 0.4em;
}
.hero-sub {
  color: #f0e4e8;
  font-size: 1.05rem;
  max-width: 48ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 20px;
}
.hero .btn-ghost {
  color: var(--ivory);
  border-color: rgba(250, 245, 236, 0.6);
}
.hero .btn-ghost:hover { background: var(--ivory); color: var(--plum); }
.hero-meta {
  font-size: 0.9rem;
  color: #e6d4da;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-meta a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: 72px 0; }
.service-list {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.service-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.service-name h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25em;
}
.service-name p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin: 0;
}
.service-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.services-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--mauve);
  font-style: italic;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery {
  padding: 72px 0;
  background: var(--ivory-deep);
}
.gallery-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.gallery-item--wide { grid-column: span 2; }
.gallery-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, var(--rose) 0%, var(--mauve) 55%, var(--plum) 100%);
  aspect-ratio: 4 / 3;
}
.gallery-item--wide .gallery-trigger { aspect-ratio: 16 / 9; }
.gallery-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-trigger:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(0deg, rgba(30, 18, 22, 0.82) 0%, transparent 100%);
  color: var(--ivory);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
}

@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-item--wide { grid-column: span 2; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: 72px 0; }
.about-inner {
  display: grid;
  gap: 32px;
}
.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold-soft), var(--rose));
  aspect-ratio: 4 / 3;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { color: var(--ink-soft); }

@media (min-width: 860px) {
  .about-inner {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }
}

/* ==========================================================================
   Booking
   ========================================================================== */
.booking {
  padding: 72px 0;
  background: var(--plum);
  color: var(--ivory);
}
.booking-inner {
  display: grid;
  gap: 36px;
}
.booking .eyebrow { color: var(--gold-soft); }
.booking-intro h2 { color: var(--ivory); }
.booking-intro p { color: #ddc7cf; max-width: 46ch; }

.booking-form, .booking-success {
  background: var(--ivory);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-lg);
}
.form-row { margin-bottom: 18px; }
.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--plum);
}
.optional { font-weight: 400; color: var(--mauve); }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: #a3323f;
}
.field-error {
  color: #a3323f;
  font-size: 0.82rem;
  margin: 6px 0 0;
  min-height: 1em;
}
.form-disclaimer {
  font-size: 0.82rem;
  color: var(--mauve);
  background: var(--ivory-deep);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.booking-success {
  text-align: center;
  padding: 40px 24px;
}
.success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--ivory);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.booking-success h3 { margin-bottom: 0.4em; }
.success-note {
  font-size: 0.86rem;
  color: var(--mauve);
  max-width: 46ch;
  margin: 0 auto 20px;
}

@media (min-width: 860px) {
  .booking-inner { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
}

/* ==========================================================================
   Visit / location
   ========================================================================== */
.visit { padding: 72px 0; }
.visit-inner {
  display: grid;
  gap: 32px;
}
.visit-list { margin-top: 24px; }
.visit-list > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.visit-list dt {
  font-weight: 600;
  color: var(--plum);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.visit-list dd { margin: 0; }
.hours-list { margin-top: 6px; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  max-width: 320px;
  padding: 3px 0;
  color: var(--ink-soft);
}
.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.visit-map svg { width: 100%; height: 100%; display: block; }

@media (min-width: 860px) {
  .visit-inner { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 15, 0.9);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-image {
  max-width: 100%;
  max-height: 72vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  background: var(--mauve-pale);
}
.lightbox-caption {
  color: var(--ivory);
  margin-top: 14px;
  font-size: 0.95rem;
}
.lightbox-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--ivory);
  color: var(--plum);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(250, 245, 236, 0.9);
  color: var(--plum);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev { left: -6px; }
.lightbox-next { right: -6px; }
@media (min-width: 640px) {
  .lightbox-prev { left: -56px; }
  .lightbox-next { right: -56px; }
  .lightbox-close { top: -14px; right: -50px; }
}

/* ==========================================================================
   Sticky mobile book button
   ========================================================================== */
.sticky-book {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, var(--ivory) 60%, rgba(250, 245, 236, 0));
}
@media (min-width: 860px) {
  .sticky-book { display: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: #cbb9be;
  padding: 40px 0 96px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ivory);
  margin: 0 0 4px;
}
.footer-disclaimer {
  font-size: 0.82rem;
  color: #a7949a;
  max-width: 60ch;
  margin: 0;
}
@media (min-width: 860px) {
  .site-footer { padding-bottom: 40px; }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

/* ==========================================================================
   Small screens (<= 360px) safety
   ========================================================================== */
@media (max-width: 380px) {
  .form-row--split { grid-template-columns: 1fr; }
  .hero-content { padding-left: 16px; padding-right: 16px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .gallery-trigger:hover img { transform: none; }
}
