/* ========================================
   AABR HAIR SALON — Custom Styles
   Charcoal + Coral | Minimalist Clean
======================================== */

/* --- Custom Properties --- */
:root {
  --charcoal: #2A2A2A;
  --charcoal-light: #3D3D3D;
  --charcoal-dark: #1A1A1A;
  --coral: #FF6B57;
  --coral-light: #FF8A78;
  --coral-dark: #E55A47;
  --cream: #FAF8F6;
  --warm-gray: #F5F3F0;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', system-ui, sans-serif;
}

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

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

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* --- Navbar Transition --- */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(250, 248, 246, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(42, 42, 42, 0.08);
}

.nav-logo-text {
  color: var(--charcoal);
}

#navbar:not(.scrolled) .nav-logo-text {
  color: #FAF8F6;
}

/* --- Section Eyebrow --- */
.section-eyebrow {
  display: block;
  margin-bottom: 0.75rem;
}

/* --- Service Cards --- */
.service-card {
  transition: background-color 0.5s ease;
}

.service-card::before {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--coral);
  margin-bottom: 1rem;
  transition: width 0.5s ease;
}

.service-card:hover::before {
  width: 48px;
}

/* --- Gallery --- */
.gallery-item {
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0);
  transition: background 0.4s ease;
}

.gallery-item:hover::after {
  background: rgba(255, 107, 87, 0.1);
}

/* --- Testimonial Cards --- */
.testimonial-card {
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* --- Mobile Menu --- */
.mobile-nav-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

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

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s 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; }
}

/* --- Form Styling --- */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233D3D3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select:focus {
  border-color: var(--coral);
  outline: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--charcoal-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--coral);
}

/* --- Selection --- */
::selection {
  background: var(--coral);
  color: #FAF8F6;
}

/* --- Mobile Menu Button Animation --- */
#mobile-menu-btn.active #menu-line-1 {
  transform: rotate(45deg) translate(3px, 3px);
}

#mobile-menu-btn.active #menu-line-2 {
  opacity: 0;
}

#mobile-menu-btn.active #menu-line-3 {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 1.5rem;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .font-serif {
    line-height: 1.15;
  }
}
