/* ============================================================
   service-detail.css
   Shared system for the split-out corporate service pages
   (headshots, commercial, social, web design) and the
   business.html hub index.

   Design reference: editorial split-screen, numbered services,
   one dark accent panel per page, generous whitespace.
   Depends on: style.css (tokens), services.css, pricing.css
   ============================================================ */

/* ---------- 1. THE DARK PANEL ----------------------------------
   One contained dark card per page. Everything dense lives inside
   it; the page around it stays cream. Ported from .bp-dark-tabs so
   nested pricing components (pr-row, pr-card, accordion) invert. */

.sd-dark {
  background: #0e0e0e;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 3.25rem);
}

.sd-dark .pr-row { border-color: rgba(242,237,230,0.15); }
.sd-dark .pr-row:first-child { border-top-color: rgba(242,237,230,0.15); }
.sd-dark .pr-row__name {
  font-family: 'Bodoni Moda', var(--font-serif);
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #f2ede6;
}
.sd-dark .pr-row__meta { color: rgba(242,237,230,0.55); }
.sd-dark .pr-row__price {
  font-family: 'Bodoni Moda', var(--font-serif);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--pistachio);
}
.sd-dark .pr-row__price--contact { color: rgba(242,237,230,0.7); }
.sd-dark .pr-row__floor { color: rgba(242,237,230,0.4); }

.sd-dark .accordion { border-top-color: rgba(242,237,230,0.15); }
.sd-dark .accordion-item { border-bottom-color: rgba(242,237,230,0.15); }
.sd-dark .accordion-btn {
  color: #f2ede6;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.sd-dark .accordion-btn:hover { color: var(--pistachio); }
.sd-dark .accordion-btn svg { color: var(--pistachio); }
.sd-dark .accordion-body p { color: rgba(242,237,230,0.6); }
.sd-dark .accordion-body p a { color: var(--pistachio); }

.sd-dark .pr-cta-link {
  color: var(--pistachio);
  border-color: rgba(242,237,230,0.3);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sd-dark .pr-cta-link:hover { color: #f2ede6; border-color: #f2ede6; }

.sd-dark .pr-callout { background: rgba(242,237,230,0.06); border-left-color: var(--pistachio); }
.sd-dark .pr-callout__label { color: var(--pistachio); }
.sd-dark .pr-callout__headline {
  color: #f2ede6;
  font-family: 'Bodoni Moda', var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
}
.sd-dark .pr-callout__body { color: rgba(242,237,230,0.6); }
.sd-dark .pr-callout__tags span { color: var(--pistachio); border-color: rgba(242,237,230,0.3); }

.sd-dark .pr-card--dark { background: #161616; }
.sd-dark .pr-card--dark.pr-card--featured { background: #171b13; }
.sd-dark .pr-card__name {
  font-family: 'Bodoni Moda', var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
}
.sd-dark .pr-card__price {
  font-family: 'Bodoni Moda', var(--font-serif);
  font-weight: 500;
  letter-spacing: 0;
}

/* ---------- 2. THE HUB INDEX (business.html) -------------------
   Three doors, nothing else. Each row: thumbnail, number, name,
   price, one line, arrow. No modals, no tabs. */

.sd-index {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 980px) { .sd-index { grid-template-columns: 1fr; gap: 2.25rem; } }

.sd-index__intro p {
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 42ch;
}
.sd-index__intro p + p { margin-top: 1.1rem; }
.sd-index__fine {
  font-size: 0.72rem !important;
  font-style: italic;
  line-height: 1.8 !important;
}

.sd-doors {
  background: #0e0e0e;
  border: 1px solid rgba(242,237,230,0.14);
  display: flex;
  flex-direction: column;
}

.sd-door {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.9rem);
  padding: clamp(1.25rem, 2.6vw, 1.9rem) clamp(1.25rem, 3vw, 2.1rem);
  text-decoration: none;
  border-bottom: 1px solid rgba(242,237,230,0.12);
  transition: background 0.28s ease;
}
.sd-door:last-child { border-bottom: none; }
.sd-door:hover, .sd-door:focus-visible { background: #151a11; }
.sd-door:focus-visible { outline: 2px solid var(--pistachio); outline-offset: -2px; }

.sd-door__thumb {
  width: clamp(64px, 8vw, 92px);
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.sd-door:hover .sd-door__thumb { filter: grayscale(0); transform: scale(1.03); }

.sd-door__body { min-width: 0; }
.sd-door__num {
  display: block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(184,201,163,0.75);
  margin-bottom: 0.4rem;
}
.sd-door__name {
  display: block;
  font-family: 'Bodoni Moda', var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #f2ede6;
  margin-bottom: 0.3rem;
}
.sd-door__price {
  display: block;
  font-family: 'Bodoni Moda', var(--font-serif);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--pistachio);
  margin-bottom: 0.5rem;
}
.sd-door__desc {
  display: block;
  font-size: 0.76rem;
  line-height: 1.7;
  color: rgba(242,237,230,0.5);
  max-width: 44ch;
}
.sd-door__arrow {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(184,201,163,0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pistachio);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.sd-door__arrow svg { width: 14px; height: 14px; }
.sd-door:hover .sd-door__arrow { background: var(--pistachio); color: #14170f; border-color: var(--pistachio); }

@media (max-width: 560px) {
  .sd-door { grid-template-columns: auto 1fr; row-gap: 0.9rem; }
  .sd-door__arrow {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    padding: 0.75rem;
    gap: 0.6rem;
    background: rgba(184,201,163,0.08);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .sd-door__arrow::before { content: 'View Pricing'; }
}

/* ---------- 3. PAGE LEDE ---------------------------------------
   The editorial split under the hero on each detail page:
   short statement left, key facts right. */

.sd-lede {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: clamp(1.75rem, 4.5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .sd-lede { grid-template-columns: 1fr; gap: 1.75rem; } }

.sd-lede__statement {
  font-family: 'Bodoni Moda', var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.9vw, 2.15rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 24ch;
  margin-bottom: 1.25rem;
}
.sd-lede__statement em { font-style: italic; color: var(--olive-dark); }
.sd-lede__body {
  font-size: 0.85rem;
  line-height: 1.95;
  color: var(--text-muted);
  max-width: 46ch;
}
.sd-lede__body + .sd-lede__body { margin-top: 1rem; }

.sd-facts { border-top: 1px solid var(--border); }
.sd-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.sd-fact__k {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.sd-fact__v {
  font-family: 'Bodoni Moda', var(--font-serif);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--text);
  text-align: right;
}

/* ---------- 4. SCOPE LISTS + TERMS NOTES -----------------------
   Ported from the social panel so all four pages share one look. */

.sd-scope { list-style: none; margin: 0.9rem 0 0; padding: 0; text-align: left; }
.sd-scope li {
  font-size: 0.72rem;
  line-height: 1.5;
  padding: 0.3rem 0 0.3rem 0.95rem;
  position: relative;
  color: rgba(242,237,230,0.85);
  border-bottom: 1px solid rgba(242,237,230,0.08);
}
.sd-scope li:last-child { border-bottom: none; }
.sd-scope li::before { content: "/"; position: absolute; left: 0; color: rgba(184,201,163,0.6); }

.sd-note {
  margin-top: 1.25rem;
  border: 1px dashed rgba(184,201,163,0.45);
  padding: 1rem 1.2rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(242,237,230,0.78);
}
.sd-note b { color: #f2ede6; }
.sd-note a { color: var(--pistachio); }

.sd-checks {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: rgba(242,237,230,0.6);
  line-height: 2.2;
}

/* ---------- 5. TRIAL PAIR (social) ----------------------------- */

.sd-trials {
  margin-top: 2.5rem;
  border: 1px solid rgba(184,201,163,0.35);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.sd-trial {
  padding: 1.9rem 1.9rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #161616;
}
.sd-trial + .sd-trial { border-left: 1px dashed rgba(184,201,163,0.35); }
@media (max-width: 760px) {
  .sd-trials { grid-template-columns: 1fr; }
  .sd-trial + .sd-trial { border-left: none; border-top: 1px dashed rgba(184,201,163,0.35); }
}
.sd-trial__label { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(184,201,163,0.85); }
.sd-trial__name {
  font-family: 'Bodoni Moda', var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: #f2ede6;
  margin: 0.65rem 0 0.2rem;
}
.sd-trial__price { font-size: 0.8rem; color: rgba(242,237,230,0.6); margin-bottom: 0.85rem; }
.sd-trial__body { font-size: 0.78rem; line-height: 1.75; color: rgba(242,237,230,0.78); margin-bottom: 1.4rem; }
.sd-trial .pr-card__btn {
  display: inline-block;
  margin-top: auto;
  padding: 0.75rem 1.6rem;
  color: #f2ede6;
  border-color: rgba(242,237,230,0.28);
}
.sd-trial .pr-card__btn:hover { background: #f2ede6; color: #0e0e0e; border-color: #f2ede6; }

/* ---------- 6. FOUR-UP PLAN GRID (social) ---------------------- */

.pr-cards--sd4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .pr-cards--sd4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pr-cards--sd4 { grid-template-columns: 1fr; } }

/* ---------- 7. SIBLING SERVICE FOOTER -------------------------
   Every detail page ends with the other doors, so a visitor never
   has to go back to the hub to cross-shop. */

.sd-siblings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.sd-sibling {
  background: var(--cream);
  padding: 1.6rem 1.7rem 1.7rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  transition: background 0.25s;
}
.sd-sibling:hover { background: var(--off-white); }
.sd-sibling__num { font-size: 0.56rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--olive-dark); }
.sd-sibling__name {
  font-family: 'Bodoni Moda', var(--font-serif);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--text);
}
.sd-sibling__price { font-size: 0.78rem; color: var(--text-muted); }
.sd-sibling__more {
  margin-top: 0.65rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-dark);
  border-bottom: 1px solid rgba(94,122,82,0.4);
  padding-bottom: 0.2rem;
}
.sd-sibling:hover .sd-sibling__more { border-bottom-color: var(--olive-dark); }

/* ---------- 8. EDITORIAL RAIL ---------------------------------
   The vertical wordmark down the left edge of the hero, straight
   from the deck layout. Desktop only; it is pure decoration. */

.sd-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 42px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-right: 1px solid rgba(242,237,230,0.12);
  pointer-events: none;
}
.sd-rail span {
  writing-mode: vertical-rl;
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(242,237,230,0.35);
}
.sd-rail span:last-child { transform: rotate(180deg); }
@media (max-width: 1100px) { .sd-rail { display: none; } }

/* ---------- 9. PHOTO STRIP ------------------------------------ */

.sd-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: clamp(2rem, 4vw, 3rem) 0;
}
.sd-strip img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .sd-strip { gap: 0.3rem; }
  .sd-strip img { aspect-ratio: 1/1; }
}

/* ---------- 10. SERIF DISPLAY RETROFIT ------------------------
   Matches the heading treatment used on weddings, portraits, and
   the galleries. Scoped to these pages only. */

.sd-page .barlow-xl,
.sd-page .display-lg {
  font-family: 'Bodoni Moda', var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.sd-page .barlow-xl span,
.sd-page .display-lg .accent { font-style: italic; }

/* ---------- 11. COMPACT SERVICE HERO ---------------------------
   Replaces the 88vh .svc-split-hero on the pages that carry a lot
   of above-the-fold content (automotive, business). Two changes do
   the work: the band is sized by its content against a hard cap
   instead of the viewport, and the starting-rate chips move out of
   the text column into a full-width meta bar underneath. Net result
   is a header that ends around two thirds down a laptop screen, so
   the section after it is always in view.
   Used with: .sd-rail, .btn, .eyebrow-sm. */

.svc-hero-c {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: clamp(340px, 46vh, 460px);
  background: #0e0e0e;
  color: #f2ede6;
}
.svc-hero-c__text {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* top padding clears the fixed nav: the breadcrumb strip that used to sit
     above this band is gone, so the centred content would ride under it */
  padding: calc(var(--nav-h) + 1rem) var(--gutter) clamp(1.9rem, 3.2vw, 3rem);
}
.svc-hero-c__text::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
}
/* .sd-rail keeps its own absolute placement */
.svc-hero-c__text > *:not(.sd-rail) { position: relative; z-index: 1; }

.svc-hero-c__eyebrow {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--pistachio);
}
.svc-hero-c__title {
  font-family: 'Bodoni Moda', var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #f2ede6;
  max-width: 20ch;
  margin: 0 0 1rem;
}
.svc-hero-c__title em {
  font-style: italic;
  color: var(--pistachio);
}
.svc-hero-c__dek {
  max-width: 46ch;
  margin: 0 0 1.6rem;
  font-size: 0.83rem;
  line-height: 1.85;
  color: rgba(242,237,230,0.5);
}
.svc-hero-c__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
}
.svc-hero-c__links {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
}
.svc-hero-c__links-label {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,237,230,0.35);
}
.svc-hero-c__link {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,237,230,0.85);
  text-decoration: underline;
  text-decoration-color: rgba(184,201,163,0.9);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.4em;
  transition: color 0.25s ease;
}
.svc-hero-c__link:hover { color: var(--pistachio); }

.svc-hero-c__img {
  position: relative;
  overflow: hidden;
  background: #161312;
}
.svc-hero-c__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc-hero-c__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 2.6rem clamp(1.1rem, 2.2vw, 1.7rem) 1.1rem;
  background: linear-gradient(to top, rgba(10,10,10,0.85), rgba(10,10,10,0.3) 62%, transparent);
}
.svc-hero-c__cap-eyebrow {
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--pistachio);
}
.svc-hero-c__cap-main {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(242,237,230,0.92);
  max-width: 34ch;
}

/* ── starting-rate meta bar, sits directly under the hero ── */
.svc-hero-meta {
  background: #111;
  border-top: 1px solid rgba(242,237,230,0.1);
  border-bottom: 1px solid rgba(242,237,230,0.1);
}
.svc-hero-meta__grid {
  display: grid;
  grid-template-columns: repeat(var(--shm-cols, 4), minmax(0, 1fr));
  gap: 1px;
  background: rgba(242,237,230,0.1);
}
.svc-hero-meta__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.15rem;
  background: #111;
  text-decoration: none;
  transition: background 0.25s ease;
}
a.svc-hero-meta__item:hover { background: rgba(242,237,230,0.05); }
.svc-hero-meta__k {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,237,230,0.4);
}
.svc-hero-meta__v {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  line-height: 1.15;
  color: #f2ede6;
}
.svc-hero-meta__v small {
  font-family: var(--font-body);
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(242,237,230,0.45);
}
.svc-hero-meta__item--feat .svc-hero-meta__v { color: var(--pistachio); }

@media (max-width: 1000px) {
  .svc-hero-c {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  /* photo first: it already clears the fixed nav on its own */
  .svc-hero-c__img { order: -1; height: clamp(190px, 30vh, 290px); }
  .svc-hero-c__text { padding-top: 1.7rem; padding-bottom: 2rem; }
  .svc-hero-c__title { font-size: clamp(1.7rem, 6vw, 2.2rem); max-width: none; }
  .svc-hero-c__dek {
    max-width: none;
    margin-bottom: 1.2rem;
    font-size: 0.79rem;
    line-height: 1.7;
  }
  .svc-hero-c__actions { gap: 1rem 1.2rem; }
}
@media (max-width: 760px) {
  .svc-hero-meta__grid { grid-template-columns: 1fr 1fr; }
  /* an odd count would otherwise leave a hole in the last row */
  .svc-hero-meta__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .svc-hero-meta__item { padding: 0.8rem 0.95rem; }
}
