/* /services-specific dark-theme override on the shared `.home-process`
   "How It Works" section (rendered via partials/how-it-works.ejs, also
   used on /). `[data-theme]` lives on `<html>`, `[data-page]` on `<body>`,
   so the chained selector reads: dark-theme html → services body → the
   process section. Home page's dark theme is unchanged. */
[data-theme='dark'] body[data-page='services'] .home-process {
  background: #1a1a1a;
}

/* ========== SERVICES OVERVIEW ========== */
/* Service rows panel. Sits as the focal cream block in the centre of the
   page — visual weight where the actual content lives. The pull-quote and
   How It Works sections above and below are airier on the textured body.
   Light theme uses the flat-cream variant of the redesign section pattern
   (matches `.about-service-area` post-Iteration-37); dark theme inherits. */
.services-overview {
  padding: 100px 0;
}

[data-theme='light'] .services-overview {
  background: #f9f6ef;
}

/* ========== /services — ALTERNATING HORIZONTAL ROWS ==========
   Each service is a full-container row with a photo on one side and content
   on the other, alternating direction every row. An oversized ghost numeral
   sits behind the content as a decorative chapter mark. Breaks the
   Webflow-template-portfolio-grid rhythm that the old `.services-overview-grid`
   had, and reads as editorial chapters rather than product tiles. */

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  margin-bottom: 5rem;
}

.service-row-media {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  aspect-ratio: 16 / 10;
  transition: all 0.3s ease;
}

.service-row:hover .service-row-media {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 110, 0.5);
  box-shadow: 0 12px 30px rgba(201, 169, 110, 0.15);
}

.service-row-media:active {
  transform: translateY(-4px);
  border-color: var(--accent-text);
  box-shadow: 0 12px 30px rgba(201, 169, 110, 0.25);
}

.service-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-row:hover .service-row-media img {
  transform: scale(1.04);
}

.service-row-content {
  position: relative;
  padding: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-row-number {
  position: absolute;
  top: -2.5rem;
  left: -0.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(6rem, 12vw, 10rem);
  line-height: 1;
  color: var(--accent-text);
  opacity: 0.12;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.service-row-content > *:not(.service-row-number) {
  position: relative;
  z-index: 1;
}

.service-row-icon {
  color: var(--accent-text);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  display: block;
}

.service-row-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 0.9rem;
  color: var(--text-primary);
}

.service-row-tagline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1.75rem;
  max-width: 480px;
}

.service-row-meta {
  display: flex;
  gap: 1.75rem;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.service-row-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--accent-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.service-row-guests {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.service-row-guests i {
  color: var(--accent-text);
  margin-right: 0.4rem;
}

/* Pill-style CTA matching the filter-pill vocabulary on /menu, /packages,
   /order. Border at gold-39%, transparent fill at rest, gold fill on
   hover with dark text. align-self: flex-start so it sits at the left
   edge of its content column rather than stretching full-width. */
.service-row-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.5rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  color: var(--accent-text);
  border: 1px solid #c9a96e63;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.service-row-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.service-row-link:hover {
  background: var(--accent);
  color: #ffffff;
}

.service-row-link:hover i {
  transform: translateX(5px);
}

/* Hairline + leaf-pair divider between rows. Replaces the old pseudo-element
   hairline so the motif can sit at the centre. The flex layout grows the
   hairlines to fill the space either side of the leaf-pair, so the overall
   width is controlled by the wrapper's horizontal margin. */
.service-row + .service-row::before {
  display: none; /* legacy pseudo-element hairline replaced by .service-row-divider */
}

.service-row-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 15%;
  color: var(--accent-text);
}

.service-row-divider::before,
.service-row-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201, 169, 110, 0.35);
}

.service-row-divider svg {
  height: 14px;
  width: auto;
  display: block;
  flex-shrink: 0;
  opacity: 0.7;
}

/* The existing row margin-bottom (5/6/7rem at the three breakpoints) was
   creating the gap between rows — now the divider lives in that gap with
   its own margins, so zero the row's margin-bottom across breakpoints to
   avoid double-spacing. */
.service-row {
  margin-bottom: 0;
}

/* Tablet+: 2-column alternating layout. Previously kicked in at 900px, now
   at 768px so iPad-portrait users get the editorial pairing rather than a
   stacked mobile feel. Desktop (1024+) widens the gap and crops tighter. */
@media (min-width: 768px) {
  .service-row {
    grid-template-columns: 7fr 5fr;
    gap: 2.75rem;
    align-items: center;
    margin-bottom: 0;
  }

  .service-row-divider {
    margin: 3rem 15%;
  }

  .service-row + .service-row::before {
    top: -3.5rem;
  }

  .service-row-reverse {
    grid-template-columns: 5fr 7fr;
  }

  .service-row-reverse .service-row-media {
    order: 2;
  }

  .service-row-reverse .service-row-content {
    order: 1;
  }

  .service-row-media {
    aspect-ratio: 16 / 10;
  }

  .service-row-content {
    padding: 1.5rem 0;
  }

  .service-row-number {
    top: -2.75rem;
    left: -0.5rem;
  }

  .service-row-reverse .service-row-number {
    left: auto;
    right: -0.5rem;
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .service-row {
    gap: 4.5rem;
    margin-bottom: 0;
  }

  .service-row-divider {
    margin: 3.5rem 15%;
  }

  .service-row + .service-row::before {
    top: -4rem;
  }

  .service-row-content {
    padding: 2rem 0;
  }

  .service-row-number {
    top: -3.5rem;
    left: -1rem;
  }

  .service-row-reverse .service-row-number {
    left: auto;
    right: -1rem;
  }
}

/* ========== SERVICE DETAIL PAGES ========== */
.service-detail {
  padding: 60px 0;
}

[data-theme='light'] .service-detail {
  background: #f9f6ef;
}

.service-detail-grid {
  display: grid;
  gap: 60px;
  align-items: start;
}

.service-detail-content h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: -1px;
  line-height: 1.1;
}

.service-detail-content p {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.9;
  margin-bottom: 20px;
}

/* What's Included — white card on the cream `.service-detail` band in
   light theme; dark `#1a1a1a` card on near-black body in dark theme.
   Inherits the redesigned home-services card vocabulary: 1px neutral
   hairline + 20px radius. */
.service-includes {
  margin: 0;
  padding: 40px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  transition: background-color 0.3s ease;
}

[data-theme='light'] .service-includes {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] .service-includes {
  background: #0d0d0d;
  border-color: rgba(201, 169, 110, 0.5);
}

.service-includes h3 {
  font-size: var(--fs-h3);
  margin-bottom: 25px;
}

.service-includes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.service-includes-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-includes-item i {
  color: var(--accent-text);
  margin-top: 4px;
  flex-shrink: 0;
}

/* Price Callout */
.service-price-box {
  background: var(--bg-primary);
  border-left: 4px solid var(--accent);
  padding: 40px;
  margin-top: 40px;
  transition: background-color 0.3s ease;
}

.service-price-box .price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.service-price-box .price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-text);
  line-height: 1;
}

.service-price-box .price-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 10px;
}

/* Detail Image */
.service-detail-image {
  position: sticky;
  top: 100px;
  overflow: hidden;
  border-radius: 20px;
}

.service-detail-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Mini Gallery — Full-Bleed flat-cream band. */
.service-mini-gallery {
  padding: 100px 0;
  transition: background-color 0.3s ease;
}

[data-theme='light'] .service-mini-gallery {
  background: #f9f6ef;
}

.service-mini-gallery .gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.service-mini-gallery h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
}

.mini-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.mini-gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

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

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

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

.mini-gallery-overlay i {
  color: var(--accent-text);
  font-size: 1.5rem;
}

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

/* ========== RESPONSIVE: MOBILE ========== */
@media (max-width: 767px) {
  .service-row-content {
    padding-bottom: 0;
  }

  .service-row:last-of-type {
    padding-bottom: 40px;
  }

  .services-overview {
    padding: 60px 0 0;
  }

  .service-detail {
    padding: 30px 0;
  }

  .service-detail-image {
    position: static;
  }

  .service-detail-content h2 {
    margin-bottom: 20px;
  }

  /* On mobile, only the 4px gold left accent is visible. */
  .service-includes {
    margin: 10px 0 30px;
    padding: 20px;
    border-radius: 0;
    border-left: 4px solid var(--accent);
  }

  /* Theme-scoped to outweigh the desktop `[data-theme='light'] .service-includes`
     and `[data-theme='dark'] .service-includes` rules above (both at 0,2,0
     specificity). [data-theme] matches both themes; mobile-only via the
     parent @media. Includes border-left-color explicitly so the dark-theme
     rule's `rgba(201, 169, 110, 0.5)` (which sets all 4 sides via shorthand
     `border-color`) doesn't leak into the left border at half-opacity. */
  [data-theme] .service-includes {
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: var(--accent);
  }

  .service-detail-grid {
    gap: 20px;
  }

  .service-price-box {
    padding: 25px;
    margin-top: 20px;
  }

  .service-price-box .price-amount {
    font-size: 2.5rem;
  }

  .service-mini-gallery {
    padding: 60px 0;
  }
}

/* ========== RESPONSIVE: TABLET ========== */
@media (min-width: 768px) {
  .service-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-includes-grid {
    grid-template-columns: 1fr 1fr;
  }

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

