/* Ems Gems Nail Salon - booking site
   Palette pulled from the logo: deep aubergine ground, blush-pink glow accent.
   Signature element: a soft pink "polish glow" halo on the active step/selection,
   echoing the neon glow around the logo artwork. Used once, kept quiet elsewhere. */

:root {
  --plum-900: #1a0a14;
  --plum-800: #2b1220;
  --plum-700: #3d1a2c;
  --blush-100: #f7e9ee;
  --blush-200: #f0d9e2;
  --blush-glow: #e8a8c2;
  --ink: #2b1220;
  --cream: #fdfaf9;
  --success: #4a7c59;
  --error: #b3403a;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-script: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 14px;
  --shadow-soft: 0 8px 30px rgba(43, 18, 32, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.top-hero {
  background: radial-gradient(120% 140% at 20% 0%, var(--plum-700) 0%, var(--plum-900) 60%, #0d0509 100%);
  color: var(--blush-100);
  padding: 48px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.top-hero .logo {
  max-width: 280px;
  width: 100%;
  filter: drop-shadow(0 0 24px rgba(232, 168, 194, 0.35));
}

.top-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 18px 0 6px;
  letter-spacing: 0.01em;
}

.top-hero p {
  margin: 0;
  color: var(--blush-200);
  font-size: 1rem;
  opacity: 0.9;
}

.wrap {
  max-width: 760px;
  margin: -28px auto 60px;
  padding: 0 20px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  margin-bottom: 22px;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 0 30px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #9a8590;
}

.steps span {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #ece0e4;
  background: #fff;
}

.steps span.active {
  background: var(--plum-900);
  color: var(--blush-100);
  border-color: var(--plum-900);
  box-shadow: 0 0 0 4px rgba(232, 168, 194, 0.25);
}

h2.section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 18px;
  color: var(--plum-900);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.service-card {
  border: 1.5px solid #ece0e4;
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  background: var(--blush-100);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  text-align: left;
}

.service-card:hover { transform: translateY(-1px); }

.service-card.selected {
  border-color: var(--blush-glow);
  box-shadow: 0 0 0 4px rgba(232, 168, 194, 0.3), 0 0 24px rgba(232, 168, 194, 0.45);
}

.service-card .name {
  font-weight: 600;
  font-size: 1.02rem;
  display: block;
  margin-bottom: 4px;
}

.service-card .meta {
  font-size: 0.85rem;
  color: #7a6670;
}

input[type="date"], input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ece0e4;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}

input:focus, textarea:focus, button:focus-visible {
  outline: 3px solid rgba(232, 168, 194, 0.55);
  outline-offset: 1px;
  border-color: var(--blush-glow);
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--plum-800);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.slot-btn {
  padding: 10px 6px;
  border-radius: 10px;
  border: 1.5px solid #ece0e4;
  background: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: var(--font-body);
}

.slot-btn.selected {
  background: var(--plum-900);
  color: var(--blush-100);
  border-color: var(--plum-900);
  box-shadow: 0 0 18px rgba(232, 168, 194, 0.5);
}

.slot-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--plum-900);
  color: var(--blush-100);
  border: none;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 18px;
  transition: box-shadow 0.15s ease;
}

.btn-primary:hover { box-shadow: 0 0 22px rgba(232, 168, 194, 0.55); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.btn-secondary {
  background: transparent;
  border: 1.5px solid #ece0e4;
  color: var(--plum-800);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f2e8eb;
  font-size: 0.95rem;
}

.summary-row:last-child { border-bottom: none; font-weight: 700; }

.msg {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-top: 12px;
}

.msg.error { background: #fbeceb; color: var(--error); }
.msg.success { background: #ecf3ed; color: var(--success); }

.empty-note {
  text-align: center;
  color: #8a7580;
  font-size: 0.92rem;
  padding: 18px 0;
}

#card-element {
  padding: 12px 14px;
  border: 1.5px solid #ece0e4;
  border-radius: 10px;
  background: #fff;
}

.confirmation {
  text-align: center;
  padding: 20px 0;
}

.confirmation .glow-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--plum-900);
  color: var(--blush-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
  box-shadow: 0 0 30px rgba(232, 168, 194, 0.55);
}

footer.site-footer {
  text-align: center;
  color: #9a8590;
  font-size: 0.82rem;
  padding: 10px 0 40px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--plum-900);
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav-brand {
  font-family: var(--font-display);
  color: var(--blush-100);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav-links a {
  color: var(--blush-200);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 999px;
}

.site-nav-links a:hover,
.site-nav-links a.active:not(.site-nav-cta) {
  background: rgba(232, 168, 194, 0.15);
  color: var(--blush-100);
}

.site-nav-links a.site-nav-cta {
  background: var(--blush-glow);
  color: var(--plum-900);
  font-weight: 600;
}

.site-nav-links a.site-nav-cta:hover {
  box-shadow: 0 0 16px rgba(232, 168, 194, 0.6);
}

.top-hero.small-hero {
  padding: 34px 24px 46px;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-btn {
  width: auto;
  margin-top: 0;
  padding: 14px 28px;
  text-decoration: none;
  display: inline-block;
}

.hero-btn-secondary {
  width: auto;
  padding: 14px 28px;
  text-decoration: none;
  display: inline-block;
  color: var(--blush-100);
  border-color: rgba(232, 168, 194, 0.4);
}

.hero-btn-secondary:hover {
  border-color: var(--blush-glow);
  box-shadow: 0 0 16px rgba(232, 168, 194, 0.35);
}

.about-text {
  color: #5a4750;
  line-height: 1.65;
  font-size: 1rem;
}

.wrap-wide {
  max-width: 980px;
}

.portfolio-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.portfolio-preview-item {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
}

.portfolio-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.portfolio-preview-item:hover img {
  transform: scale(1.06);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.portfolio-item {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26, 10, 20, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(232, 168, 194, 0.25);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--blush-100);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 600px) {
  .portfolio-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .card { padding: 20px; }
  .top-hero { padding: 36px 16px 50px; }
}
