/* ============================================
   SALON SERVICES SECTION - LUXURY POLISH
   Cutting & Styling, Hair Coloring, Hair Extensions
   ============================================ */

/* Section Background */
.about-8.about-section {
  position: relative;
  overflow: visible;
  padding: 6rem 0;
}

/* Kill ALL negative margin tricks on a8-1/a8-3 — they cause overlap */
#a8-1 { margin-bottom: 0 !important; }
#a8-3 { margin-top: 0 !important; }

/* Individual Service Block Styling */
.about-8 > div {
  position: relative;
  padding: 4rem 0;
}

/* Service Title Enhancement */
.about-8-txt h3.h3-md {
  font-family: 'Vollkorn', serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: #363636;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 20px;
}

.about-8-txt h3.h3-md::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #b8956a, transparent);
}

/* Service Text Enhancement */
.about-8-txt p {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #6f6f6f;
  letter-spacing: 0.2px;
}

/* Image Block Enhancement */
.about-8-img {
  position: relative;
  overflow: visible;
  border-radius: 8px;
}

.about-8-img::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 2px solid rgba(218, 186, 159, 0.3);
  z-index: 1;
  pointer-events: none;
  transition: all 0.4s ease;
  border-radius: 6px;
}

.about-8-img:hover::before {
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-color: rgba(218, 186, 159, 0.5);
}

.about-8-img img {
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: brightness(0.98) contrast(1.05);
  border-radius: 8px;
  display: block;
  width: 100%;
}

.about-8-img:hover img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.08);
}

/* Add subtle background pattern */
.about-8 {
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(218, 186, 159, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(184, 149, 106, 0.03) 0%, transparent 50%);
}

/* Divider between services */
.about-8 > div:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 149, 106, 0.3), transparent);
}

/* #a8-3: vertically center text with image */
#a8-3 .row {
  align-items: center !important;
}

#a8-3 .about-8-txt.right-column {
  padding-top: 0;
}

/* Hair Coloring: ensure underline matches other sections */
#a8-2 .about-8-txt h3.h3-md::after {
  width: 60px;
  left: 0;
}

/* Dark Theme Adjustments */
body.theme--dark .about-8-txt h3.h3-md {
  color: #fff;
}

body.theme--dark .about-8-txt p {
  color: #ccc;
}

body.theme--dark .about-8-img::before {
  border-color: rgba(218, 186, 159, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .about-8-txt h3.h3-md {
    font-size: 1.7rem;
  }
  
  .about-8-txt p {
    font-size: 0.975rem;
  }
  
  .about-8 > div {
    padding: 3rem 0;
  }
}

@media (max-width: 767px) {
  .about-8-txt h3.h3-md {
    font-size: 1.55rem;
    margin-bottom: 16px;
  }
  
  .about-8-txt p {
    font-size: 0.95rem;
  }

  .about-8 > div {
    padding: 2rem 0;
  }

  /* Proper horizontal padding so text doesn't hug screen edge */
  .about-8-txt.left-column,
  .about-8-txt.right-column {
    padding: 0 20px !important;
  }
  
  .about-8-img {
    margin-bottom: 24px;
  }

  .about-8-img.left-column,
  .about-8-img.right-column {
    margin-bottom: 24px !important;
    padding: 0 !important;
  }
}

@media (max-width: 575px) {
  .about-8-txt h3.h3-md {
    font-size: 1.4rem;
  }
  
  .about-8 {
    padding: 3rem 0;
  }

  .about-8-txt.left-column,
  .about-8-txt.right-column {
    padding: 0 20px !important;
  }
}

/* ============================================
   KILL TEMPLATE BLACK LINES — these come from style.css
   .about-8-txt.right-column:before and .about-8-txt.left-column:after
   ============================================ */
.about-8-txt.right-column:before,
.about-8-txt.right-column::before,
.about-8-txt.left-column:after,
.about-8-txt.left-column::after {
  display: none !important;
  content: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ============================================
   DECORATIVE SIDE LINES
   ============================================ */

/* Left column text block — line on the LEFT side */
.about-8-txt.left-column {
  position: relative;
  padding-left: 30px !important;
}

.about-8-txt.left-column::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 3px;
  height: 90px;
  background: linear-gradient(180deg, transparent, #b8956a, transparent);
  display: block !important;
}

/* Right column text block — line on the RIGHT side */
.about-8-txt.right-column {
  position: relative;
  padding-right: 30px !important;
}

.about-8-txt.right-column::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 3px;
  height: 90px;
  background: linear-gradient(180deg, transparent, #b8956a, transparent);
  display: block !important;
}

/* Desktop padding */
@media (min-width: 992px) {
  .about-8-txt.left-column {
    padding-left: 40px !important;
    padding-right: 60px !important;
  }
  .about-8-txt.right-column {
    padding-left: 60px !important;
    padding-right: 40px !important;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
  .about-8-txt.left-column {
    padding-left: 30px !important;
    padding-right: 20px !important;
  }
  .about-8-txt.right-column {
    padding-left: 20px !important;
    padding-right: 30px !important;
  }
}

/* Mobile: hide side lines */
@media (max-width: 767px) {
  .about-8-txt.left-column::before,
  .about-8-txt.right-column::after {
    display: none !important;
  }

  .about-8-txt.left-column,
  .about-8-txt.right-column {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}
