/* ============================================
   MY NAIL BESTIE — Marketing site
   Static, no JavaScript. White / salmon-pink palette,
   editorial serif headings.
   ============================================ */

:root {
  --accent:       #FB607F;   /* brink pink */
  --accent-dark:  #D93A5D;
  --bg:           #FFFFFF;   /* white */
  --bg-alt:       #FFF0F3;   /* faint salmon wash for banded sections */
  --card:         #FFFFFF;
  --text:         #000000;   /* black */
  --text-muted:   #6E555D;
  --border:       #FFCDD8;
  --radius:       14px;
  --shadow:       0 4px 20px rgba(180, 60, 90, 0.10);
  --font-display: "Didot", "Bodoni MT", "Cormorant Garamond", "Playfair Display",
                  Georgia, "Times New Roman", serif;
  --font-body:    Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
                  "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent-dark); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.02em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.top-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text);
  padding: 7px 12px;
  border-radius: 6px;
  transition: background 0.15s;
}

.top-nav a:hover { background: var(--bg-alt); }

.top-nav .nav-cta {
  background: var(--accent);
  color: #FFFFFF;
  margin-left: 6px;
}

.top-nav .nav-cta:hover { background: var(--accent-dark); }

/* ---- Hero ---- */
.hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 92px 0 96px;
  text-align: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  font-weight: 500;
  margin-bottom: 22px;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.08rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: inherit;
  border-radius: 8px;
  padding: 13px 28px;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s, color 0.15s;
}

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

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: var(--shadow);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  color: var(--text);
  border: 1px solid var(--text);
}

.btn-outline:hover { background: var(--text); color: var(--bg); }

.btn-dark {
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow);
}

.btn-dark:hover { background: #2A0A12; }

/* ---- Sections ---- */
.section { padding: 76px 0; }

.section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 44px;
}

/* ---- Price cards ---- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.price-card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.price-card h3.mt { margin-top: 24px; }

.price-card ul { list-style: none; }

.price-card li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.95rem;
}

.price-card li span { color: var(--text); }

.price-card li b {
  color: var(--accent-dark);
  font-weight: 700;
  white-space: nowrap;
}

/* ---- Gallery slideshow ---- */
/* CSS-only crossfade, four frames at once: within each frame the slides stack
   and fade in/out one at a time, 5 s per slide. Frame A holds 5 slides
   (25 s loop, slideFade5); frames B–D hold 4 slides each (20 s loop,
   slideFade4). Each frame's delays are offset by a negative fraction of a
   slot so the four frames don't all switch in the same instant. If you change
   how many slides a frame holds, give it the matching slideFadeN keyframes
   (visible slot = 5 s of an N x 5 s loop) and extend its delay list. */
.gallery {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.slideshow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .slideshow-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.slideshow {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
}

.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

/* visible slot: fade in over ~1.2 s, hold ~4 s, fade out over ~1.2 s */
@keyframes slideFade5 { /* 5 slides, 25 s loop */
  0%    { opacity: 0; }
  4.8%  { opacity: 1; }
  20%   { opacity: 1; }
  24.8% { opacity: 0; }
  100%  { opacity: 0; }
}

@keyframes slideFade4 { /* 4 slides, 20 s loop */
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  25%  { opacity: 1; }
  31%  { opacity: 0; }
  100% { opacity: 0; }
}

.ss-a img { animation: slideFade5 25s infinite; }
.ss-b img,
.ss-c img,
.ss-d img { animation: slideFade4 20s infinite; }

.ss-a img:nth-child(1) { animation-delay: 0s; }
.ss-a img:nth-child(2) { animation-delay: 5s; }
.ss-a img:nth-child(3) { animation-delay: 10s; }
.ss-a img:nth-child(4) { animation-delay: 15s; }
.ss-a img:nth-child(5) { animation-delay: 20s; }

.ss-b img:nth-child(1) { animation-delay: -1.25s; }
.ss-b img:nth-child(2) { animation-delay: 3.75s; }
.ss-b img:nth-child(3) { animation-delay: 8.75s; }
.ss-b img:nth-child(4) { animation-delay: 13.75s; }

.ss-c img:nth-child(1) { animation-delay: -2.5s; }
.ss-c img:nth-child(2) { animation-delay: 2.5s; }
.ss-c img:nth-child(3) { animation-delay: 7.5s; }
.ss-c img:nth-child(4) { animation-delay: 12.5s; }

.ss-d img:nth-child(1) { animation-delay: -3.75s; }
.ss-d img:nth-child(2) { animation-delay: 1.25s; }
.ss-d img:nth-child(3) { animation-delay: 6.25s; }
.ss-d img:nth-child(4) { animation-delay: 11.25s; }

/* ---- Loyalty ---- */
.loyalty-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.loyalty-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.step-num {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loyalty-step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.loyalty-step p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

.loyalty-step p strong { color: var(--text); }

.loyalty-note {
  text-align: center;
  font-style: italic;
  color: var(--accent-dark);
}

/* ---- Hours & location ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 0 auto;
}

.map-card {
  display: block;
  position: relative;
  min-height: 260px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  text-align: center;
  padding: 6px 10px;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.hours-table td {
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
}

.hours-table tr:last-child td { border-bottom: none; }

.hours-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--accent-dark);
}

.hours-table .closed td:last-child { color: var(--text-muted); }

.address {
  font-size: 1rem;
  margin-bottom: 16px;
}

.map-link {
  font-size: 0.94rem;
}

.info-card .btn { margin-bottom: 12px; }

/* ---- Review CTA ---- */
.review-cta {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
  padding-top: 60px;
  padding-bottom: 68px;
}

.review-cta .section-sub { margin-bottom: 26px; }

.review-actions { text-align: center; }

/* ---- Footer ---- */
.site-footer {
  background: var(--text);
  color: #FFD9E1;
  text-align: center;
  padding: 32px 0;
  font-size: 0.9rem;
}

.site-footer a { color: #FF92A5; }

.fineprint {
  margin-top: 6px;
  font-size: 0.78rem;
  opacity: 0.7;
}

/* ---- Small screens ---- */
@media (max-width: 560px) {
  .hero { padding: 60px 0 66px; }
  .section { padding: 54px 0; }
  .top-nav a { font-size: 0.87rem; padding: 6px 9px; }
}

/* ---- Accessibility: honor reduced-motion preference ---- */
@media (prefers-reduced-motion: reduce) {
  .slideshow img { animation: none; }
  .slideshow img:first-child { opacity: 1; }
  .btn { transition: none; }
  html { scroll-behavior: auto; }
}
