/* ============================================================
   PERFECTION NAILS & SPA — YELM, WA
   Bold editorial style: plum + amber palette
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --plum-50:  #faf5ff;
  --plum-100: #f3e8ff;
  --plum-200: #e9d5ff;
  --plum-300: #d8b4fe;
  --plum-400: #c084fc;
  --plum-500: #a855f7;
  --plum-600: #9333ea;
  --plum-700: #7e22ce;
  --plum-800: #5b21b6;
  --plum-900: #3b0764;
  --plum-950: #1a0533;

  --amber-50:  #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;

  --cream: #faf8f5;
  --cream-dark: #f5f0eb;
  --charcoal: #1a1a1a;
  --text-dark: #1f1133;
  --text-mid: #4a3660;
  --text-light: #7c6a8a;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 3px rgba(26,5,51,0.08);
  --shadow-md: 0 4px 20px rgba(26,5,51,0.10);
  --shadow-lg: 0 12px 40px rgba(26,5,51,0.14);
  --shadow-xl: 0 24px 60px rgba(26,5,51,0.18);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.15; color: var(--text-dark); }

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.7;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.8125rem 1.75rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn--amber {
  background: var(--amber-500);
  color: var(--charcoal);
  box-shadow: 0 4px 16px rgba(245,158,11,0.35);
}
.btn--amber:hover {
  background: var(--amber-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.45);
}

.btn--light {
  background: #fff;
  color: var(--plum-900);
  box-shadow: var(--shadow-md);
}
.btn--light:hover {
  background: var(--plum-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--outline-plum {
  background: transparent;
  color: var(--plum-700);
  border: 1.5px solid var(--plum-300);
}
.btn--outline-plum:hover {
  background: var(--plum-50);
  border-color: var(--plum-500);
  transform: translateY(-2px);
}

.btn--full { width: 100%; justify-content: center; }
.btn--lg { padding: 1rem 2.25rem; font-size: 1.0625rem; }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250,248,245,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(91,33,182,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(250,248,245,0.96);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--plum-900);
}
.logo .amp { color: var(--amber-600); font-style: italic; }
.logo--light { color: #fff; }
.logo--light .amp { color: var(--amber-300); }
.logo--light .logo-mark { color: #fff; }

.logo-mark { flex-shrink: 0; color: var(--plum-700); }
.logo--light .logo-mark { color: #fff; }

/* NAV */
.nav-toggle {
  display: none;
  color: var(--plum-900);
  padding: 0.5rem;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-list a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0.5rem 0.875rem;
  border-radius: 50px;
  transition: all 0.2s;
}
.nav-list a:hover {
  color: var(--plum-700);
  background: var(--plum-50);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--plum-950);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,5,51,0.92) 0%,
    rgba(91,33,182,0.85) 40%,
    rgba(126,34,206,0.75) 70%,
    rgba(147,51,234,0.65) 100%
  );
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 80%, rgba(245,158,11,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(168,85,247,0.2) 0%, transparent 50%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  max-width: 860px;
}
.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-400);
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-headline .serif-accent {
  font-style: italic;
  color: var(--amber-400);
  font-weight: 700;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.4);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- SERVICES ---------- */
.services {
  padding: 7rem 0;
  background: var(--cream);
}
.services > .container:first-child {
  text-align: center;
  margin-bottom: 4rem;
}
.services > .container:first-child .section-lead { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(91,33,182,0.06);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.service-card-img {
  height: 220px;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover .service-card-img img {
  transform: scale(1.06);
}
.service-card-body {
  padding: 1.75rem;
}
.service-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum-700);
  background: var(--plum-100);
  padding: 0.3125rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.875rem;
}
.service-card-body h3 {
  font-size: 1.375rem;
  margin-bottom: 0.625rem;
  color: var(--text-dark);
}
.service-card-body p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ---------- GALLERY ---------- */
.gallery {
  padding: 7rem 0;
  background: var(--cream-dark);
}
.gallery > .container:first-child {
  text-align: center;
  margin-bottom: 3.5rem;
}
.gallery > .container:first-child .section-lead { margin: 0 auto; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: auto;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(1) img { height: 100%; }
.gallery-item:nth-child(5) { grid-row: span 2; }
.gallery-item:nth-child(5) img { height: 100%; }

/* ---------- ABOUT ---------- */
.about {
  padding: 7rem 0;
  background: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-images {
  position: relative;
}
.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}
.about-img-float {
  position: absolute;
  bottom: -2rem;
  right: -1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--cream);
}
.about-img-float img {
  width: 280px;
  height: 220px;
  object-fit: cover;
  display: block;
}
.about-content .section-title { margin-bottom: 1.5rem; }
.about-body {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--plum-100);
}
.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--plum-700);
  line-height: 1;
  margin-bottom: 0.375rem;
}
.stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: 7rem 0;
  background: var(--plum-950);
  position: relative;
  overflow: hidden;
}
.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(147,51,234,0.3) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(245,158,11,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.testimonials .container {
  position: relative;
  z-index: 1;
}
.testimonials .section-eyebrow { color: var(--amber-400); }
.testimonials .section-title { color: #fff; text-align: center; margin-bottom: 3.5rem; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}
.testimonial-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.quote-mark {
  color: var(--amber-500);
  margin-bottom: 1rem;
  opacity: 0.6;
}
.testimonial-card p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  font-size: 0.875rem;
  font-style: normal;
  color: var(--amber-400);
  font-weight: 500;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
  background: var(--plum-900);
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--plum-950) 0%,
    var(--plum-800) 50%,
    rgba(147,51,234,0.9) 100%
  );
}
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.cta-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.cta-body {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 7rem 0;
  background: var(--cream);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info .section-title { margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.75rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon {
  flex-shrink: 0;
  color: var(--plum-600);
  margin-top: 0.125rem;
}
.contact-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}
.contact-item p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.contact-item a {
  color: var(--plum-700);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-item a:hover { color: var(--amber-600); text-decoration: underline; }

/* FORM */
.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(91,33,182,0.06);
}
.contact-form-title {
  font-size: 1.5rem;
  margin-bottom: 1.75rem;
  color: var(--text-dark);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--cream);
  border: 1.5px solid var(--plum-100);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--plum-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(147,51,234,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note {
  font-size: 0.8125rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.6;
}
.form-note a { color: var(--plum-700); text-decoration: underline; }

.form-success {
  text-align: center;
  padding: 2rem;
  color: var(--plum-700);
}
.form-success svg { margin: 0 auto 1rem; }
.form-success h4 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
  color: var(--plum-700);
}
.form-success p { color: var(--text-mid); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--plum-950);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 300px;
}
.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-400);
  margin-bottom: 1rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--amber-400); }
.footer-contact p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0.25rem;
}
.footer-contact a {
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--amber-400); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- MOBILE NAV ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-list {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250,248,245,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(91,33,182,0.1);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }
  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-list a {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    width: 100%;
    border-radius: var(--radius-sm);
  }
  .nav-list li:last-child a {
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid .testimonial-card:last-child { grid-column: span 2; max-width: 50%; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > :first-child { grid-column: span 2; }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(5) { grid-row: auto; }
  .gallery-item img { height: 250px; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-float { right: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial-card:last-child { grid-column: auto; max-width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner > :first-child { grid-column: auto; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .hero-content { padding: 7rem 1.25rem 3rem; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; gap: 1.5rem; }
  .about-img-float { position: relative; bottom: auto; right: auto; margin-top: 1rem; }
  .about-img-float img { width: 100%; height: 200px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-scroll { animation: none; }
}
