/**
 * ELYSIAN FALSE CEILING — Shared Service Page Styles
 * Used by all 15 individual service pages under /services/[service-slug]/
 * Global tokens, components, and layout are in global-assets/css/.
 * This file contains layout classes unique to service detail pages.
 */


/* ── Service Intro: Text + Image Side-by-Side ────────────────
   Single column on mobile, 50/50 two-column on desktop.
   --reversed variant puts image on the right (text left).
──────────────────────────────────────────────────────────── */

.service-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (min-width: 1024px) {
  .service-intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
  }

  /* Image leads on left, text follows on right */
  .service-intro-grid--reversed .service-intro-text { order: 1; }
  .service-intro-grid--reversed .service-intro-image { order: 2; }
}

.service-intro-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.service-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}

.service-intro-grid:hover .service-intro-image img {
  transform: scale(1.03);
}


/* ── Why Reasons: 2-Column Card Grid ─────────────────────────
   Four reason cards on a light background, gold top border.
──────────────────────────────────────────────────────────── */

.why-reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-top: var(--space-12);
}

@media (min-width: 768px) {
  .why-reasons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

.why-reason {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8);
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 250ms ease, transform 250ms ease;
}

.why-reason:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.why-reason-number {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
}

.why-reason-title {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
  margin: 0;
}

.why-reason-body {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}


/* ── Materials List ──────────────────────────────────────────
   Vertical list with gold left border accent per item.
──────────────────────────────────────────────────────────── */

.materials-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.material-item {
  padding-left: var(--space-5);
  border-left: 3px solid var(--color-accent);
}

.material-item-name {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-1) 0;
}

.material-item-desc {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}


/* ── Gallery: 3×2 Photo Grid ─────────────────────────────────
   1-col mobile → 2-col tablet → 3-col desktop.
   Figcaption below image on warm off-white background.
──────────────────────────────────────────────────────────── */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-12);
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-dark);
}

.gallery-item picture {
  display: block;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

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

.gallery-item figcaption {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
  line-height: 1.4;
  background: var(--color-surface);
}


/* ── Related Projects / Services: 3-Column Grid ──────────────
   Shared by both the related-projects and related-services
   sections on every service detail page.
──────────────────────────────────────────────────────────── */

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-12);
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}
