/* =====================================================================
   All Star Entertainment — services.css
   Page-specific styles for services.html only.
   All tokens, reset, typography, buttons, nav, and footer
   come from main.css.
   ===================================================================== */

/* ---------------------------------------------------------------------
   PAGE HEADER
   --------------------------------------------------------------------- */
.svc-hero {
  position: relative;
  padding-block: clamp(72px, 14vw, 140px);
  background-image: url('Images/Services/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.svc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.62) 0%, rgba(0,0,0,.45) 100%);
  z-index: 0;
}
.svc-hero .container {
  position: relative;
  z-index: 1;
}
.svc-hero .eyebrow { margin-bottom: .9rem; }
.svc-hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--paper);
  max-width: 20ch;
  line-height: 1.05;
}
.svc-hero__sub {
  color: var(--paper);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 60ch;
  margin-top: 1rem;
  line-height: 1.6;
}

/* Gold rule separating header from chapters */
.svc-rule {
  height: 4px;
  background: var(--gold);
  border: none;
  margin: 0;
}

/* ---------------------------------------------------------------------
   CHAPTER SECTIONS
   Alternating background: default = var(--bg), --alt = var(--surface)
   --------------------------------------------------------------------- */
.svc-chapter { border-bottom: 1px solid var(--line); }
.svc-chapter--alt { background: var(--surface); }

/* Chapter header — number eyebrow + title + one-line intro */
.chapter__head {
  max-width: 72ch;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
  padding-bottom: clamp(1.4rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.chapter__head .eyebrow {
  margin-bottom: .6rem;
  /* Number eyebrow: slightly larger than standard .eyebrow */
  font-size: .8rem;
}
.chapter__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--paper);
  margin-top: .1em;
  line-height: 1.06;
}
.chapter__intro {
  color: var(--paper-dim);
  font-size: 1.05rem;
  margin-top: .75rem;
  line-height: 1.55;
  max-width: 64ch;
}

/* ---------------------------------------------------------------------
   SERVICE ITEMS — image top, title + description below
   Stack vertically within each chapter.
   --------------------------------------------------------------------- */
.svc-items {
  display: flex;
  flex-direction: column;
  gap: clamp(2.4rem, 5vw, 3.6rem);
}

.svc-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
}

/* Chapters with --alt background get a slightly lighter card */
.svc-chapter--alt .svc-item { background: var(--surface-2); }

/* Image slot — fixed aspect ratio, placeholder shown until image is added */
.svc-item__media {
  aspect-ratio: 16 / 7;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.svc-chapter--alt .svc-item__media { background: var(--bg); }


.svc-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Hide broken/empty img element so the ::before placeholder shows */
.svc-item__media img:not([src]),
.svc-item__media img[src=""] { display: none; }

/* Text body */
.svc-item__body {
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.2rem) clamp(1.6rem, 3.5vw, 2.4rem);
}

.svc-item__title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--paper);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .6rem;
}

/* Inline sub-label, e.g. "Audio Guestbook" on Memory Phone */
.svc-item__tag {
  font-family: var(--font-label);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  border: 1px solid rgba(252,204,71,.35);
  border-radius: var(--pill);
  padding: .2em .65em;
  vertical-align: middle;
  white-space: nowrap;
}

.svc-item__desc {
  margin-top: .85rem;
  color: var(--paper-dim);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 80ch;
}
.svc-item__desc p + p { margin-top: .75rem; }

/* Divider between title and description */
.svc-item__body::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: .9rem 0 0;
  order: 1;
}
/* Re-order so the rule appears between title and desc */
.svc-item__body {
  display: flex;
  flex-direction: column;
}
.svc-item__title { order: 0; }
.svc-item__body::after { order: 1; }
.svc-item__desc { order: 2; }

/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 640px) {
  .svc-item__media { aspect-ratio: 4 / 3; }
  .svc-item__body {
    padding: 1.2rem 1.1rem 1.4rem;
  }
}

@media (max-width: 400px) {
  .chapter__title { font-size: clamp(1.6rem, 7vw, 1.9rem); }
}
