/* =============================================
   T NAILS — Custom Styles
   Palette: Plum + Amber | Fresh & Airy
   ============================================= */

/* ---------- Base / Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: 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;
}

/* ---------- Header ---------- */
#site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(123, 45, 142, 0.07);
  transition: box-shadow 0.4s ease, background 0.4s ease;
}
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 30px rgba(123, 45, 142, 0.08);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #a83d82, #f59510);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ---------- Mobile Menu ---------- */
#mobile-menu {
  box-shadow: 0 20px 60px rgba(123, 45, 142, 0.12);
}
.mobile-link {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#mobile-menu.opening .mobile-link {
  animation: mobileLinkIn 0.35s ease forwards;
}
#mobile-menu.closing .mobile-link {
  animation: mobileLinkOut 0.25s ease forwards;
}
@keyframes mobileLinkIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mobileLinkOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(12px); }
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #a83d82 0%, #8a2e68 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.8125rem 1.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(138, 46, 104, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(138, 46, 104, 0.4);
  background: linear-gradient(135deg, #b84d92 0%, #9a3e78 100%);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #6d2453;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.8125rem 1.75rem;
  border-radius: 9999px;
  border: 2px solid rgba(109, 36, 83, 0.25);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(109, 36, 83, 0.06);
  border-color: rgba(109, 36, 83, 0.45);
}

/* ---------- Section Shared ---------- */
.section-eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
}
.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
}
.section-desc {
  font-family: 'Inter', system-ui, sans-serif;
}

/* ---------- Hero ---------- */
.hero-eyebrow {
  animation: fadeSlideUp 0.7s ease both;
}
.hero-title {
  animation: fadeSlideUp 0.7s 0.12s ease both;
}
.hero-desc {
  animation: fadeSlideUp 0.7s 0.24s ease both;
}
.hero-cta {
  animation: fadeSlideUp 0.7s 0.36s ease both;
}
.hero-stats {
  animation: fadeSlideUp 0.7s 0.48s ease both;
}
.hero-img-stack-main {
  animation: imgFloatIn 0.9s 0.2s ease both;
}
.hero-img-stack-accent {
  animation: imgFloatIn 0.9s 0.4s ease both;
}
.hero-floating-badge {
  animation: badgePop 0.5s 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes imgFloatIn {
  from { opacity: 0; transform: translateX(40px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes badgePop {
  from { opacity: 0; transform: scale(0.7) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- Services ---------- */
.service-card {
  transform: translateY(0);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
}
.service-icon {
  transition: transform 0.35s ease;
}

/* ---------- About ---------- */
.about-img-main {
  transition: transform 0.5s ease;
}
.about-img-float {
  transition: transform 0.5s ease;
}
.about-images:hover .about-img-main { transform: scale(1.01); }
.about-images:hover .about-img-float { transform: translate(4px, -4px); }

/* ---------- Gallery ---------- */
.gallery-item {
  cursor: pointer;
  overflow: hidden;
}
.gallery-img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(65, 23, 51, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 0.75rem;
  pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }

/* ---------- Reviews ---------- */
.review-card {
  transition: transform 0.3s ease, background 0.3s ease;
}
.review-card:hover {
  transform: translateY(-4px);
}

/* ---------- Contact Form ---------- */
.input-field {
  font-family: 'Inter', system-ui, sans-serif;
}
.input-field:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(168, 61, 130, 0.12);
}
.input-field option { color: #411733; }

/* ---------- Back to Top ---------- */
.back-to-top {
  animation: fadeSlideUp 0.4s ease both;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(138, 46, 104, 0.4);
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
}
/* Fallback: always visible if JS doesn't run */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .hero-title, .hero-title span {
    font-size: 3.25rem !important;
  }
  .hero-img-stack-main { width: 90%; }
  .hero-img-stack-accent { width: 60%; bottom: 0; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title, .hero-title span {
    font-size: 4.5rem !important;
  }
}
@media (min-width: 1024px) {
  .hero-title, .hero-title span {
    font-size: 5rem !important;
  }
  @media (min-width: 1280px) {
    .hero-title, .hero-title span {
      font-size: 6rem !important;
    }
  }
}

/* ---------- Focus Visible ---------- */
:focus-visible {
  outline: 2px solid #a83d82;
  outline-offset: 2px;
  border-radius: 4px;
}
