/* ==========================================================================
   Nikhar Ladies Style Salon — custom styles
   Complements Tailwind CDN. Colors defined in tailwind.config (index.html).
   ========================================================================== */

:root {
  --cream: #fbf7f2;
  --sand: #f3e9df;
  --rose: #c98a9b;
  --rose-deep: #a85d70;
  --plum: #3f2233;
  --charcoal: #2b2530;
  --gold: #c8a15a;
}

html { scroll-behavior: smooth; }

body { line-height: 1.6; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   Accessibility: skip link + focus states
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--plum);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus { left: 0; }

.focus-ring:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Buttons (reusable)
   -------------------------------------------------------------------------- */
.btn-primary,
.btn-outline,
.btn-ghost,
.btn-gold,
.btn-outline-light,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--plum); color: var(--cream); }
.btn-primary:hover { background: var(--rose-deep); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(63,34,51,0.5); }

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

.btn-ghost { color: var(--rose-deep); background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.btn-ghost:hover { color: var(--plum); }

.btn-gold { background: var(--gold); color: var(--plum); }
.btn-gold:hover { background: #b58f47; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(200,161,90,0.6); }

.btn-outline-light { border: 1.5px solid rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--plum); }

.btn-whatsapp { background: #25d366; color: #0b3d2e; }
.btn-whatsapp:hover { background: #1ebe5b; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(37,211,102,0.6); }
.btn-whatsapp svg { width: 1.15rem; height: 1.15rem; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav-link { color: var(--charcoal); position: relative; padding-bottom: 2px; transition: color 0.2s ease; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--rose-deep); transition: width 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--rose-deep); }
.nav-link.active::after, .nav-link:hover::after { width: 100%; }

#site-header.scrolled { box-shadow: 0 4px 24px -12px rgba(0,0,0,0.2); }

.mobile-menu { transition: max-height 0.35s ease; background: var(--cream); border-top: 1px solid rgba(0,0,0,0.05); }
.mobile-link {
  display: block; padding: 0.85rem 0.5rem; color: var(--charcoal);
  border-bottom: 1px solid rgba(0,0,0,0.05); font-weight: 500; transition: color 0.2s, padding-left 0.2s;
}
.mobile-link:hover, .mobile-link.active { color: var(--rose-deep); padding-left: 1rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
#hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(201,138,155,0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(200,161,90,0.12), transparent 45%),
    var(--cream);
}
.hero-frame {
  border-radius: 2rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px -25px rgba(63,34,51,0.4);
  border: 6px solid #fff;
}
.hero-badge {
  position: absolute; bottom: 1.5rem; left: -1.25rem;
  background: #fff; padding: 1rem 1.25rem; border-radius: 1rem;
  box-shadow: 0 15px 35px -15px rgba(63,34,51,0.35);
  align-items: center; gap: 0.75rem;
}
.hero-badge::before { content: "📍"; font-size: 1.5rem; }

/* --------------------------------------------------------------------------
   Section helpers
   -------------------------------------------------------------------------- */
.section-eyebrow {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--rose-deep); font-weight: 600; margin-bottom: 0.75rem;
}
.section-title { font-family: "Playfair Display", serif; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.15; color: var(--plum); }

/* Trust cards */
.trust-card { background: #fff; border-radius: 1.25rem; padding: 1.25rem; text-align: center; box-shadow: 0 10px 30px -18px rgba(63,34,51,0.25); transition: transform 0.25s ease; }
.trust-card:hover { transform: translateY(-4px); }
.trust-icon { font-size: 1.75rem; display: block; margin-bottom: 0.5rem; }
.trust-title { font-family: "Playfair Display", serif; font-size: 1rem; color: var(--plum); }
.trust-sub { font-size: 0.8rem; color: rgba(43,37,48,0.6); margin-top: 0.25rem; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.service-group-title {
  font-family: "Playfair Display", serif; font-size: 1.5rem; color: var(--plum);
  margin: 0 0 1.25rem; padding-left: 0.75rem; border-left: 3px solid var(--gold);
}
.service-card {
  background: #fff; border-radius: 1.25rem; padding: 1.5rem;
  box-shadow: 0 10px 30px -20px rgba(63,34,51,0.3);
  border: 1px solid rgba(63,34,51,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(63,34,51,0.35); }
.service-icon { font-size: 1.75rem; }
.service-name { font-family: "Playfair Display", serif; font-size: 1.15rem; color: var(--plum); margin: 0.75rem 0 0.4rem; }
.service-desc { font-size: 0.9rem; color: rgba(43,37,48,0.7); flex-grow: 1; }
.service-cta { margin-top: 1rem; font-size: 0.85rem; font-weight: 600; color: var(--rose-deep); transition: color 0.2s, transform 0.2s; }
.service-cta:hover { color: var(--plum); }

/* Featured promo */
.featured-cta {
  background: url("https://images.unsplash.com/photo-1516975080664-ed2fc6a32937?auto=format&fit=crop&w=1600&q=70") center/cover fixed no-repeat;
}
.featured-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(63,34,51,0.85), rgba(168,93,112,0.7)); }

/* Why choose us */
.why-card { background: #fff; border-radius: 1.25rem; padding: 1.75rem; box-shadow: 0 10px 30px -20px rgba(63,34,51,0.25); transition: transform 0.25s ease; }
.why-card:hover { transform: translateY(-5px); }
.why-icon { font-size: 1.75rem; display: block; }
.why-title { font-family: "Playfair Display", serif; font-size: 1.2rem; color: var(--plum); margin: 0.75rem 0 0.4rem; }
.why-desc { font-size: 0.9rem; color: rgba(43,37,48,0.7); }

/* --------------------------------------------------------------------------
   Gallery + Lightbox
   -------------------------------------------------------------------------- */
.gallery-item {
  position: relative; overflow: hidden; border-radius: 1rem; cursor: pointer;
  aspect-ratio: 1 / 1; display: block; width: 100%; padding: 0; border: none; background: var(--sand);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1rem;
  color: #fff; font-weight: 600; font-family: "Playfair Display", serif;
  background: linear-gradient(to top, rgba(63,34,51,0.65), transparent 55%);
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  background: rgba(20,12,18,0.92); padding: 1.5rem; opacity: 0; transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 0.75rem; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.25rem; font-size: 2.5rem; line-height: 1;
  color: #fff; background: none; border: none; cursor: pointer;
}

/* Reviews placeholder */
.review-placeholder {
  border: 1.5px dashed rgba(168,93,112,0.4); border-radius: 1.25rem; padding: 2rem;
  background: rgba(255,255,255,0.5);
}

/* Location */
.loc-icon { font-size: 1.25rem; flex-shrink: 0; }
.link-underline { color: var(--rose-deep); text-decoration: underline; text-underline-offset: 3px; }
.link-underline:hover { color: var(--plum); }
.map-card { border-radius: 1.5rem; overflow: hidden; box-shadow: var(--shadow, 0 15px 40px -20px rgba(63,34,51,0.35)); min-height: 320px; }

/* --------------------------------------------------------------------------
   Contact / appointment card
   -------------------------------------------------------------------------- */
.contact-card { background: #fff; border-radius: 1.5rem; padding: 2rem 1.75rem; box-shadow: 0 20px 50px -25px rgba(63,34,51,0.35); text-align: left; }
.contact-divider { display: flex; align-items: center; text-align: center; color: var(--plum); opacity: 0.6; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; margin: 1.25rem 0; }
.contact-divider::before, .contact-divider::after { content: ""; flex: 1; height: 1px; background: rgba(63,34,51,0.15); }
.contact-divider span { padding: 0 0.9rem; }

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
.faq-item { background: #fff; border-radius: 1rem; box-shadow: 0 8px 24px -18px rgba(63,34,51,0.3); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; text-align: left; font-weight: 600; color: var(--plum);
  font-family: "Playfair Display", serif; font-size: 1.05rem; background: none; border: none; cursor: pointer;
}
.faq-plus { font-size: 1.5rem; color: var(--rose-deep); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-question[aria-expanded="true"] .faq-plus { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 1.25rem 1.2rem; color: rgba(43,37,48,0.75); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer-heading { font-family: "Playfair Display", serif; color: var(--cream); font-size: 1.1rem; margin-bottom: 1rem; }
.footer-link { color: rgba(251,247,242,0.7); transition: color 0.2s; }
.footer-link:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   Back-to-top + mobile CTA bar
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed; bottom: 5.5rem; right: 1.25rem; z-index: 40;
  width: 3rem; height: 3rem; border-radius: 9999px; border: none; cursor: pointer;
  background: var(--plum); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px -10px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--rose-deep); }
@media (min-width: 1024px) { .back-to-top { bottom: 1.5rem; } }

.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border-top: 1px solid rgba(63,34,51,0.1);
  box-shadow: 0 -8px 24px -12px rgba(0,0,0,0.25);
  padding: 0.4rem 0.4rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
}
.mobile-cta-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 0.5rem; font-size: 0.72rem; font-weight: 600; color: var(--plum); border-radius: 0.75rem;
}
.mobile-cta-btn span { font-size: 1.1rem; }
.mobile-cta-primary { background: var(--plum); color: #fff; margin: 0 0.15rem; }

/* Add breathing room so the fixed mobile bar doesn't cover content */
@media (max-width: 1023px) { body { padding-bottom: 4.5rem; } }

/* --------------------------------------------------------------------------
   Scroll reveal animation
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Prevent body scroll when mobile menu / lightbox open */
body.no-scroll { overflow: hidden; }

