/* ==========================================================================
   Hair by Isis — Global Stylesheet
   Color palette:
     --pink:        #c4547e  (primary brand pink)
     --dark:        #1a1a1f  (dark background / nav / footer)
     --dark-rose:   #3d1f2d  (dark rose section backgrounds)
     --pink-light:  #fbeaf0  (light pink accent / sections)
     --pink-pale:   #f4c0d1  (pale pink accent)
     --white:       #ffffff  (content sections)
   ========================================================================== */

:root {
  --pink: #c4547e;
  --pink-dark: #a8415f;
  --dark: #1a1a1f;
  --dark-rose: #3d1f2d;
  --pink-light: #fbeaf0;
  --pink-pale: #f4c0d1;
  --white: #ffffff;
  --text-dark: #2a1c22;
  --text-muted: #6b5560;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-script: 'Great Vibes', cursive;
}

/* ----- Reset & base ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: 48px; }
h2 { font-size: 32px; }
h3 { font-size: 20px; }

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

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-light {
  background: var(--pink-light);
}

.section-dark {
  background: var(--dark-rose);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 12px auto 0;
}

.section-dark .section-header p {
  color: var(--pink-pale);
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

.btn-primary:hover {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
  transform: scale(1.04);
}

.btn-outline {
  background: transparent;
  color: var(--pink);
  border-color: var(--pink);
}

.btn-outline:hover {
  background: var(--pink);
  color: var(--white);
  transform: scale(1.04);
}

/* On dark backgrounds, outline buttons should pop in pale pink */
.section-dark .btn-outline,
.hero .btn-outline {
  color: var(--pink-pale);
  border-color: var(--pink-pale);
}

.section-dark .btn-outline:hover,
.hero .btn-outline:hover {
  background: var(--pink-pale);
  color: var(--dark-rose);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--dark);
  z-index: 1000;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  transition: padding 0.3s ease;
}

.navbar.scrolled .nav-inner {
  padding: 12px 24px;
}

.logo {
  font-family: var(--font-script);
  font-size: 34px;
  font-weight: 400;
  color: var(--pink);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--pink);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pink-pale);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 14px;
}

/* ----- Hamburger ----- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--pink-pale);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Eyebrow label (small uppercase accent above section headings)
   ========================================================================== */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 10px;
}

/* Decorative underline on centered section headings */
.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 3px;
  background: var(--pink);
  border-radius: 2px;
}

/* ==========================================================================
   Hero (Home page)
   ========================================================================== */
.hero {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0 100px;
  overflow: hidden;
  position: relative;
}

/* Subtle radial pink glow behind hero photos */
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(196, 84, 126, 0.13) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  color: var(--white);
  font-size: 58px;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--pink);
}

.hero-content p {
  font-size: 18px;
  color: var(--pink-pale);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.insta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(196, 84, 126, 0.12);
  border: 1px solid var(--pink);
  color: var(--pink-pale);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
}

.insta-badge svg {
  width: 18px;
  height: 18px;
  fill: var(--pink-pale);
}

/* Stacked photo cards */
.hero-photos {
  position: relative;
  height: 460px;
}

.hero-photo {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid rgba(196, 84, 126, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(196, 84, 126, 0.12);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo.photo-1 {
  width: 60%;
  top: 0;
  right: 0;
  height: 280px;
  z-index: 2;
}

.hero-photo.photo-2 {
  width: 55%;
  bottom: 0;
  left: 0;
  height: 240px;
  z-index: 3;
  transform: rotate(-3deg);
}

.hero-photo.photo-3 {
  width: 45%;
  bottom: 60px;
  right: 10%;
  height: 200px;
  z-index: 1;
  transform: rotate(4deg);
}

/* ==========================================================================
   Stats bar
   ========================================================================== */
.stats-bar {
  background: var(--pink-light);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 800;
  color: var(--pink);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-top: 4px;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid #f1dde5;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink), 0 16px 40px rgba(196, 84, 126, 0.18);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-light) 0%, #f5c8d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(196, 84, 126, 0.15);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--pink);
}

.service-card h3 {
  margin-bottom: 6px;
}

.service-price {
  color: var(--pink);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* View full menu link block */
.services-cta {
  text-align: center;
  margin-top: 48px;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pink-light);
  border: 1px solid var(--pink-pale);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Placeholder tile (used when no Instagram embed/API is connected) */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 12px;
}

.gallery-placeholder svg {
  width: 32px;
  height: 32px;
  fill: var(--pink);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(196, 84, 126, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

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

.gallery-item:hover .gallery-overlay svg {
  transform: scale(1);
}

.gallery-cta {
  text-align: center;
  margin-top: 40px;
}

/* Featured first item in homepage gallery preview — spans 2 rows */
.gallery-grid--preview {
  grid-template-rows: auto auto;
}

.gallery-item--featured {
  grid-row: span 2;
}

/* Eyebrow on dark sections */
.section-dark .eyebrow {
  color: var(--pink-pale);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--dark-rose);
  border-radius: 16px;
  padding: 40px 32px 32px;
  border: 1px solid rgba(244, 192, 209, 0.15);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 18px;
  font-size: 100px;
  font-family: var(--font-heading);
  color: rgba(196, 84, 126, 0.22);
  line-height: 1;
  pointer-events: none;
}

.stars {
  color: var(--pink-pale);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card p.review-text {
  color: var(--pink-light);
  font-size: 15px;
  margin-bottom: 20px;
}

.testimonial-name {
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 18px;
}

.testimonial-role {
  color: var(--pink-pale);
  font-size: 13px;
}

/* ==========================================================================
   Booking CTA (Home)
   ========================================================================== */
.booking-cta {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-rose) 100%);
  color: var(--white);
  text-align: center;
  padding: 90px 0;
}

.booking-cta h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.booking-cta p {
  color: var(--pink-pale);
  max-width: 500px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   Book Now page — Square widgets
   ========================================================================== */
.square-box {
  background: var(--dark-rose);
  border: 2px solid var(--pink);
  border-radius: 12px;
  padding: 32px;
  color: var(--white);
  margin-bottom: 40px;
}

.square-box h3 {
  color: var(--white);
  margin-bottom: 16px;
}

.square-box label {
  display: block;
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
}

.deposit-note {
  background: var(--pink-light);
  border-left: 4px solid var(--pink);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 32px;
  color: var(--text-dark);
  font-size: 15px;
}

.deposit-note strong {
  color: var(--pink-dark);
}

#card-container {
  background: var(--white);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  min-height: 90px;
}

#payment-status-container {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
}

/* ==========================================================================
   About / Contact pages
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 55%, var(--dark-rose) 100%);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
}

.page-hero p {
  color: var(--pink-pale);
  margin-top: 12px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-grid img {
  border-radius: 16px;
  border: none;
  box-shadow: 10px 10px 0 var(--pink-light), 0 24px 60px rgba(0, 0, 0, 0.1);
}

.about-grid h2 {
  margin-bottom: 16px;
}

.about-grid p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  background: var(--white);
  border: 1px solid #f1dde5;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.value-card h3 {
  margin: 12px 0 8px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  margin-bottom: 8px;
}

.contact-info .info-block {
  margin-bottom: 28px;
}

.contact-info .info-block p {
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: -8px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--pink-pale);
  border-radius: 8px;
  background: var(--pink-light);
  color: var(--text-dark);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--pink);
  background: var(--white);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 56px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(244, 192, 209, 0.12);
}

.footer-logo {
  font-family: var(--font-script);
  font-size: 34px;
  color: var(--pink);
  margin-bottom: 12px;
}

.footer-about p {
  color: var(--pink-pale);
  font-size: 14px;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--white);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--pink);
}

.footer-contact p {
  color: var(--pink-pale);
  font-size: 14px;
  margin-bottom: 6px;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--dark-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: var(--pink-pale);
}

.footer-social a:hover {
  background: var(--pink);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 13px;
  color: var(--pink-pale);
}

/* ==========================================================================
   Fade-in on scroll
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-photos {
    height: 380px;
    margin-top: 32px;
  }

  .services-grid,
  .testimonials-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 38px; }
  .hero-content h1 { font-size: 40px; }
  h2 { font-size: 28px; }

  .nav-links,
  .nav-cta .btn-outline {
    display: none;
  }

  .logo {
    font-size: 26px;
  }

  .nav-cta {
    gap: 14px;
  }

  .nav-cta .btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .hamburger {
    display: flex;
  }

  /* Remove featured span on mobile — all gallery items equal */
  .gallery-item--featured {
    grid-row: span 1;
  }

  /* Stacked hero photos become a row of small cards on mobile */
  .hero-photos {
    height: auto;
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  .hero-photo,
  .hero-photo.photo-1,
  .hero-photo.photo-2,
  .hero-photo.photo-3 {
    position: relative;
    width: 33.33%;
    height: 130px;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
  }

  /* Mobile nav menu */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 16px 24px 28px;
    gap: 18px;
    border-top: 1px solid rgba(244, 192, 209, 0.12);
    animation: slideDown 0.25s ease;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .services-grid,
  .testimonials-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    text-align: center;
  }
}
