/* ============================================
   NEW IMAGE BEAUTY SHOP — Custom Styles
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::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 {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Utility ---------- */
.section-eyebrow {
  display: block;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
}

.section-desc {
  font-family: 'Lato', system-ui, sans-serif;
}

/* ---------- Header ---------- */
.site-header {
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

#mobileMenu.open {
  max-height: 400px;
}

.menu-line {
  display: block;
}

#menuToggle[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#menuToggle[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
}

#menuToggle[aria-expanded="true"] .menu-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-link {
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
}

.hero-bg {
  z-index: 0;
}

.hero-scrim {
  background: linear-gradient(
    135deg,
    rgba(9, 26, 46, 0.88) 0%,
    rgba(15, 43, 76, 0.82) 40%,
    rgba(20, 53, 84, 0.75) 70%,
    rgba(45, 74, 114, 0.70) 100%
  );
}

.hero-deco {
  animation: float 6s ease-in-out infinite;
}

.hero-deco-2 {
  animation-delay: -2s;
  animation-duration: 8s;
}

.hero-deco-3 {
  animation-delay: -1s;
  animation-duration: 4s;
}

.hero-deco-4 {
  animation-delay: -3s;
  animation-duration: 5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-12px) scale(1.05); opacity: 0.9; }
}

/* Hero content entrance — progressive enhancement via JS */
.hero-subtitle,
.hero-title,
.hero-desc,
.hero-ctas {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #42A388;
  color: #fff;
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(66, 163, 136, 0.3);
}

.btn-primary:hover {
  background: #5FBFA3;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(66, 163, 136, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* ---------- Trust Bar ---------- */
.trust-item {
  opacity: 1;
}

/* ---------- Services ---------- */
.services-grid {
  opacity: 1;
}

.service-card {
  opacity: 1;
}

.link-underline {
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- About ---------- */
.about-images {
  opacity: 1;
}

.about-content {
  opacity: 1;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  opacity: 1;
}

.gallery-item {
  position: relative;
  aspect-ratio: auto;
  overflow: hidden;
}

.gallery-item:nth-child(1) { aspect-ratio: 4/5; }
.gallery-item:nth-child(2) { aspect-ratio: 1; }
.gallery-item:nth-child(3) { aspect-ratio: 5/4; }
.gallery-item:nth-child(4) { aspect-ratio: 1; }
.gallery-item:nth-child(5) { aspect-ratio: 4/5; }
.gallery-item:nth-child(6) { aspect-ratio: 1; }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 43, 76, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  opacity: 1;
}

.testimonial-card {
  opacity: 1;
}

/* ---------- Contact ---------- */
.contact-grid {
  opacity: 1;
}

.contact-form-wrap {
  opacity: 1;
}

.input-field {
  font-family: 'Lato', system-ui, sans-serif;
}

.input-field:focus {
  border-color: #5FBFA3;
  box-shadow: 0 0 0 3px rgba(95, 191, 163, 0.15);
}

.input-field::placeholder {
  color: #94a3b8;
}

/* ---------- Footer ---------- */
.footer {
  opacity: 1;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0F2B4C;
  color: #A8DADC;
  border: 1px solid rgba(168, 218, 220, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 40;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #142036;
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 639px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-img-accent {
    width: 28px;
    height: 28px;
    bottom: -4px;
    right: -4px;
  }

  .about-badge {
    position: relative;
    top: auto;
    left: auto;
    display: inline-block;
    margin-bottom: 1rem;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hero-title {
    font-size: 3.5rem;
  }
}
