/**
 * fixes-pillar.css
 *
 * Styles for the Service Pillar Page redesign.
 * Covers FIX 2A, 2C, 2D, 2E, 2F, 2G, 2H.
 *
 * Design system:
 *   Cream: #F5F0EB  |  Gold: #B8956A  |  Brown: #5C4A3A  |  Dark brown: #3D2E1E
 *   Heading font: Cormorant Garamond  |  Body: Plus Jakarta Sans
 *
 * @package salon-en-vogue
 * @version 1.0.0
 */

/* ==========================================================================
   FIX 2D: Center ALL Content - Layout Override
   ========================================================================== */

/* Remove two-column layout since sidebar is gone */
.service-pillar__layout {
  display: block;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Main column takes full width */
.service-pillar__main {
  max-width: 100%;
  width: 100%;
}

/* Section centering */
.service-pillar__inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* All section headings centered */
.pillar-services__title,
.pillar-gallery__title,
.pillar-reviews__title,
.pillar-faq__title,
.pillar-blog__title,
.pillar-booking__title,
.pillar-related__heading,
.service-pillar__article-title {
  text-align: center;
}

/* Text content centered with max-width */
.service-pillar__article,
.pillar-services__note,
.pillar-booking__subtitle {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Article paragraphs left-aligned for readability but centered block */
.service-pillar__article p {
  text-align: left;
}

/* CTA buttons centered */
.pillar-booking__buttons,
.pillar-gallery__cta,
.pillar-blog__cta {
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}


/* ==========================================================================
   FIX 2A: Sub-Service Clickable Links
   ========================================================================== */

.pillar-service__link {
  color: #5C4A3A;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
  font-weight: 600;
}

.pillar-service__link:hover,
.pillar-service__link:focus {
  color: #3D2E1E;
  border-bottom-color: #B8956A;
}

.pillar-service__link:focus-visible {
  outline: 2px solid #B8956A;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Service list item layout */
.pillar-service-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #E8DDD3;
  gap: 16px;
}

.pillar-service-list__item:last-child {
  border-bottom: none;
}

.pillar-service-list__info {
  flex: 1;
  min-width: 0;
}

.pillar-service-list__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.pillar-service-list__price {
  font-weight: 500;
  color: #5C4A3A;
  white-space: nowrap;
}

/* Service list centered within container */
.pillar-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


/* ==========================================================================
   FIX 2C: Gallery Section - Responsive Grid / Horizontal Scroll
   ========================================================================== */

.pillar-gallery {
  overflow: visible;
}

.pillar-gallery__container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Desktop: 3-column grid */
.pillar-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.pillar-gallery__item {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.pillar-gallery__img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 300ms ease;
}

.pillar-gallery__item:hover .pillar-gallery__img {
  transform: scale(1.03);
}

.pillar-gallery__cta {
  text-align: center;
  margin-top: 24px;
}

.pillar-gallery__cta .btn {
  cursor: pointer;
}

/* Mobile: Horizontal scroll with scroll-snap */
@media (max-width: 768px) {
  .pillar-gallery__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 8px;
  }

  .pillar-gallery__item {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .pillar-gallery__img {
    height: 280px;
  }

  /* Hide scrollbar (optional aesthetic) */
  .pillar-gallery__grid::-webkit-scrollbar {
    height: 4px;
  }

  .pillar-gallery__grid::-webkit-scrollbar-track {
    background: #F5F0EB;
    border-radius: 2px;
  }

  .pillar-gallery__grid::-webkit-scrollbar-thumb {
    background: #B8956A;
    border-radius: 2px;
  }
}

/* Tablet: 2-column grid */
@media (min-width: 769px) and (max-width: 1024px) {
  .pillar-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================================
   FIX 2E: Real Google Reviews
   ========================================================================== */

.pillar-reviews {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.pillar-reviews__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 600;
  color: #3D2E1E;
  margin-bottom: 32px;
  text-align: center;
}

.pillar-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.pillar-review {
  background: #FAF7F4;
  border: 1px solid #E8DDD3;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.pillar-review:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(92, 74, 58, 0.08);
}

.pillar-review__stars {
  color: #B8956A;
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.pillar-review__text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #5C4A3A;
  margin: 0 0 16px 0;
  padding: 0;
  border: none;
  font-style: italic;
}

.pillar-review__author {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: #8A7B6B;
  font-style: normal;
  display: block;
}

/* Mobile: stack reviews */
@media (max-width: 768px) {
  .pillar-reviews__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Tablet: 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
  .pillar-reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================================
   FIX 2F: Booking Section - Centered Full-Width Card
   ========================================================================== */

.pillar-booking {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.pillar-booking__card {
  background: #FAF7F4;
  border: 1px solid #E8DDD3;
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pillar-booking__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  color: #3D2E1E;
  margin: 0 0 8px 0;
}

.pillar-booking__subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  color: #8A7B6B;
  margin: 0 0 24px 0;
}

.pillar-booking__buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.pillar-booking__buttons .btn {
  cursor: pointer;
}

.pillar-booking__address {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: #8A7B6B;
  margin: 0 0 12px 0;
}

.pillar-booking__hours {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: #8A7B6B;
}

.pillar-booking__hours span {
  white-space: nowrap;
}

/* Mobile booking card */
@media (max-width: 768px) {
  .pillar-booking__card {
    padding: 32px 20px;
  }

  .pillar-booking__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .pillar-booking__hours {
    flex-direction: column;
    gap: 4px;
    align-items: center;
  }
}


/* ==========================================================================
   FIX 2G: "Nos autres services" - Elegant Cards Grid
   ========================================================================== */

.pillar-related {
  background: #F5F0EB;
}

.pillar-related__heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  color: #3D2E1E;
  text-align: center;
  margin: 0 0 32px 0;
}

.pillar-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.pillar-related__card {
  background: #fff;
  border: 1px solid #E8DDD3;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pillar-related__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(92, 74, 58, 0.12);
}

.pillar-related__card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: #3D2E1E;
  margin: 0;
}

.pillar-related__card-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: #8A7B6B;
  margin: 0;
}

.pillar-related__discover {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #B8956A;
  margin-top: 8px;
  transition: color 200ms ease;
}

.pillar-related__card:hover .pillar-related__discover {
  color: #5C4A3A;
}

/* Mobile: single column */
@media (max-width: 768px) {
  .pillar-related__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Tablet: auto-fit columns */
@media (min-width: 769px) and (max-width: 1024px) {
  .pillar-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================================
   Cursor & Interactive Elements
   ========================================================================== */

.pillar-service__link,
.pillar-gallery__cta .btn,
.pillar-booking__buttons .btn,
.pillar-related__card,
.pillar-review,
.btn--outline,
.btn--primary,
.btn--ghost,
.pillar-faq__toggle {
  cursor: pointer;
}

/* Ensure all links and buttons have pointer */
.pillar-booking a,
.pillar-related a,
.pillar-reviews a,
.pillar-gallery a {
  cursor: pointer;
}


/* ==========================================================================
   Section Padding Overrides
   ========================================================================== */

.section-padding {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section-padding--sm {
  padding-top: 40px;
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .section-padding--sm {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}
