/* ============================================
   Beautiful Soul Hair Studio — 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; display: block; }

/* --- Selection --- */
::selection { background: #f9c4cc; color: #4A1820; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdf0f2; }
::-webkit-scrollbar-thumb { background: #f49aad; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #ec6b82; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', Georgia, serif; }
p { font-family: 'Nunito', system-ui, sans-serif; }

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

/* --- Section Title --- */
.section-title {
  font-weight: 500;
}

/* --- Scroll Line --- */
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fce4e8;
  color: #7B2D3B;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(123,45,59,0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  background: #f9c4cc;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123,45,59,0.3);
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Light CTA buttons (on dark backgrounds) */
.btn-light {
  background: #fff;
  color: #7B2D3B;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-light:hover {
  background: #fef9f8;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

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

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* --- Service Cards --- */
.service-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(123,45,59,0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(123,45,59,0.14);
}

.service-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-card-img {
  transform: scale(1.06);
}

.service-card-body {
  padding: 28px 24px 32px;
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #fdf0f2, #fce4e8);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon {
  width: 26px;
  height: 26px;
  color: #7B2D3B;
}

.service-card-title {
  line-height: 1.2;
}

.service-card-text {
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- About --- */
.about-img-main {
  position: relative;
  z-index: 1;
}

.about-img-accent {
  border: 4px solid #fff;
}

.about-stat {
  display: flex;
  flex-direction: column;
}

/* --- Gallery --- */
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

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

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.gallery-item:nth-child(1) .gallery-img-wrap,
.gallery-item:nth-child(3) .gallery-img-wrap,
.gallery-item:nth-child(5) .gallery-img-wrap {
  aspect-ratio: 5/6;
}

.gallery-item:nth-child(2) .gallery-img-wrap,
.gallery-item:nth-child(4) .gallery-img-wrap,
.gallery-item:nth-child(6) .gallery-img-wrap {
  aspect-ratio: 5/4;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(123,45,59,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

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

/* --- Contact --- */
.contact-info-item {
  padding-left: 0;
}

.contact-icon-wrap {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #fdf0f2, #fce4e8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: #7B2D3B;
}

.contact-form-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 40px rgba(123,45,59,0.08);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4A1820;
  margin-bottom: 8px;
}

.form-input {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9375rem;
  color: #1a1a1a;
  background: #fef9f8;
  border: 1.5px solid #f9d8d0;
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
}

.form-input::placeholder {
  color: #c4a0a0;
}

.form-input:focus {
  border-color: #f49aad;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(244,154,173,0.15);
}

.form-select {
  appearance: none;
  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='%237B2D3B' stroke-width='2.5' 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 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Success state */
.success-icon-wrap {
  background: #fdf0f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* --- Hero Animations --- */
.hero-eyebrow {
  opacity: 0;
  animation: fadeUp 0.8s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-headline {
  opacity: 0;
  animation: fadeUp 0.8s 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-subtext {
  opacity: 0;
  animation: fadeUp 0.8s 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-ctas {
  opacity: 0;
  animation: fadeUp 0.8s 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

/* --- 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 { opacity: 1; transform: none; }
  .scroll-line { animation: none; opacity: 0.4; }
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .contact-form-card {
    padding: 24px;
  }
  .about-img-accent {
    display: none;
  }
  .about-badge {
    width: 64px !important;
    height: 64px !important;
  }
  .about-badge span:first-child {
    font-size: 1.25rem !important;
  }
  .about-badge span:last-child {
    font-size: 0.5rem !important;
  }
}
