/* ═══════════════════════════════════════════
   True Colors Salon — Custom Styles
   ═══════════════════════════════════════════ */

/* ── Base ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(27, 67, 50, 0.15);
  color: #1B4332;
}

/* ── Navbar ── */
#navbar.scrolled {
  background: rgba(253, 249, 243, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27, 67, 50, 0.06);
}

.nav-link {
  position: relative;
}

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

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

/* ── Mobile Menu ── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* ── Hero ── */
.hero-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: circleFloat 1.2s ease-out forwards;
}

.circle-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(163, 204, 169, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation-delay: 0.2s;
}

.circle-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(27, 67, 50, 0.2) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  animation-delay: 0.4s;
}

.circle-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 197, 169, 0.1) 0%, transparent 70%);
  top: 40%;
  left: 10%;
  animation-delay: 0.6s;
}

@keyframes circleFloat {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-eyebrow {
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.3s forwards;
}

.hero-title {
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.5s forwards;
}

.hero-subtitle {
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.7s forwards;
}

.hero-cta {
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.9s forwards;
}

.hero-scroll {
  opacity: 0;
  animation: fadeIn 0.8s ease-out 1.3s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #D4C5A9;
  color: #1B4332;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #D4C5A9;
}

.btn-primary:hover {
  background: #c4b596;
  border-color: #c4b596;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #D4C5A9;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  border: 1.5px solid rgba(212, 197, 169, 0.4);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: rgba(212, 197, 169, 0.8);
  background: rgba(212, 197, 169, 0.08);
  transform: translateY(-2px);
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #D4C5A9;
  color: #1B4332;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-cta-primary:hover {
  background: #e8d8c0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #D4C5A9;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  border: 1.5px solid rgba(212, 197, 169, 0.4);
  transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
  border-color: rgba(212, 197, 169, 0.7);
  background: rgba(212, 197, 169, 0.06);
  transform: translateY(-2px);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1B4332;
  color: #FDF9F3;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-submit:hover {
  background: #163629;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.3);
}

/* ── Section Styles ── */
.section-eyebrow {
  display: block;
}

.section-title {
  margin-top: 0;
}

/* ── Cards ── */
.card-service {
  background: white;
  border-radius: 20px;
  padding: 0;
  border: 1px solid rgba(27, 67, 50, 0.06);
  transition: all 0.4s ease;
  overflow: hidden;
}

.card-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(27, 67, 50, 0.1);
  border-color: rgba(27, 67, 50, 0.12);
}

.card-testimonial {
  transition: all 0.4s ease;
}

/* ── Form ── */
.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(27, 67, 50, 0.12);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1B4332;
  background: #FDF9F3;
  transition: all 0.3s ease;
  outline: none;
}

.input-field::placeholder {
  color: #1B4332/0.3;
}

.input-field:hover {
  border-color: rgba(27, 67, 50, 0.25);
}

.input-field:focus {
  border-color: #1B4332;
  background: white;
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.08);
}

/* ── Reveal Animations ── */
.reveal-section {
  opacity: 1;
  transform: none;
}

.reveal-left {
  opacity: 1;
  transform: none;
}

.reveal-right {
  opacity: 1;
  transform: none;
}

.reveal-card {
  opacity: 1;
  transform: none;
}

.reveal-stat {
  opacity: 1;
  transform: none;
}

.reveal-gallery {
  opacity: 1;
  transform: none;
}

/* Scroll reveal states — only active when JS adds the class */
.reveal-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

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

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

.reveal-gallery.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal-section,
  .reveal-left,
  .reveal-right,
  .reveal-card,
  .reveal-stat,
  .reveal-gallery {
    opacity: 1;
    transform: none;
  }
}

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

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

  .card-service {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta a {
    width: 100%;
    justify-content: center;
  }
}
