/* ============================================================
   Mr Cow Studio — Single Project (Case Study) Stylesheet
   Detail page for an individual portfolio project.
   Reuses design tokens & header/footer from style.css.
   ============================================================ */

.page-project-detail {
  background: var(--background, #F7F3EE);
}

.pd-wrap > section,
.pd-wrap > .pd-band {
  scroll-margin-top: 100px;
}

/* ---------- Hero ---------- */
.pd-hero {
  position: relative;
  min-height: clamp(420px, 70vh, 680px);
  display: flex;
  align-items: flex-end;
  color: var(--white, #fff);
  margin-top: var(--header-h, 80px);
  overflow: hidden;
}

.pd-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.pd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(20, 18, 16, 0.78) 0%,
    rgba(20, 18, 16, 0.45) 45%,
    rgba(20, 18, 16, 0.15) 100%
  );
}

.pd-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(40px, 7vw, 80px);
  padding-top: 120px;
}

.pd-hero__breadcrumbs {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 22px;
}

.pd-hero__breadcrumbs a { color: var(--gold, #B99863); }
.pd-hero__breadcrumbs a:hover { text-decoration: underline; }
.pd-hero__breadcrumbs span { margin: 0 10px; opacity: 0.5; }

.pd-hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold, #B99863);
  margin-bottom: 14px;
}

.pd-hero__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 16ch;
}

.pd-hero__title em { font-style: italic; color: var(--gold, #B99863); }

.pd-hero__sub {
  font-size: 15px;
  line-height: 1.7;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}

.pd-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.pd-hero .btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white, #fff);
  backdrop-filter: blur(4px);
}
.pd-hero .btn--ghost:hover {
  background: var(--white, #fff);
  color: var(--dark, #2D2926);
  border-color: var(--white, #fff);
}

/* ---------- Fact bar ---------- */
.pd-facts {
  background: var(--beige, #E7DED2);
  border-bottom: 1px solid var(--border, #DDD5CA);
}

.pd-facts__inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 28px 24px;
}

.pd-fact { text-align: center; position: relative; }

.pd-fact + .pd-fact::before {
  content: "";
  position: absolute;
  left: -12px; top: 50%;
  transform: translateY(-50%);
  height: 36px;
  width: 1px;
  background: var(--border, #DDD5CA);
}

.pd-fact__label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted, #7A746E);
  margin-bottom: 8px;
}

.pd-fact__value {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--dark, #2D2926);
  line-height: 1.1;
}

/* ---------- Generic section ---------- */
.pd-section { padding: clamp(56px, 8vw, 96px) 0; }
.pd-section--cream { background: var(--cream, #EFE8DF); }
.pd-section--beige { background: var(--beige, #E7DED2); }

.pd-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold, #B99863);
  margin-bottom: 14px;
}

.pd-h2 {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--dark, #2D2926);
}

/* ---------- About ---------- */
.pd-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.pd-about__title { margin-bottom: 22px; max-width: 14ch; }

.pd-about__body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted, #7A746E);
  margin-bottom: 18px;
}

.pd-about__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark, #2D2926);
  margin-top: 8px;
  border-bottom: 1px solid var(--gold, #B99863);
  padding-bottom: 4px;
  transition: color var(--transition, 0.25s ease);
}
.pd-about__link:hover { color: var(--gold, #B99863); }

.pd-about__media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius-lg, 24px);
  box-shadow: var(--shadow-md, 0 8px 32px rgba(45,41,38,0.1));
}

/* ---------- Project Gallery (tabbed carousel) ---------- */
.pd-gallery__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.pd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-tab {
  background: transparent;
  border: 1px solid var(--border, #DDD5CA);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #7A746E);
  cursor: pointer;
  transition: all var(--transition, 0.25s ease);
}
.pd-tab:hover { border-color: var(--dark, #2D2926); color: var(--dark, #2D2926); }
.pd-tab.is-active {
  background: var(--dark, #2D2926);
  border-color: var(--dark, #2D2926);
  color: var(--white, #fff);
}

.pd-stage {
  position: relative;
  border-radius: var(--radius-lg, 24px);
  overflow: hidden;
  box-shadow: var(--shadow-md, 0 8px 32px rgba(45,41,38,0.1));
  background: var(--beige, #E7DED2);
}

.pd-stage__track {
  display: flex;
  transition: transform 0.5s ease;
}

.pd-stage__slide {
  flex: 0 0 100%;
}

.pd-stage__slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pd-stage__cap {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 3;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--white, #fff);
  background: rgba(45, 41, 38, 0.6);
  padding: 6px 14px;
  border-radius: 999px;
}

.pd-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark, #2D2926);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm, 0 4px 20px rgba(45,41,38,0.06));
  transition: background var(--transition, 0.25s ease);
}
.pd-arrow:hover { background: var(--gold, #B99863); color: var(--white, #fff); }
.pd-arrow--prev { left: 16px; }
.pd-arrow--next { right: 16px; }

.pd-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.pd-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border, #DDD5CA);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition, 0.25s ease), transform var(--transition, 0.25s ease);
}
.pd-dot.is-active { background: var(--gold, #B99863); transform: scale(1.25); }

/* ---------- Crafted Details ---------- */
.pd-details__head { margin-bottom: 36px; }

.pd-details__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pd-detail-card {
  position: relative;
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-sm, 0 4px 20px rgba(45,41,38,0.06));
}

.pd-detail-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.pd-detail-card:hover img { transform: scale(1.06); }

.pd-detail-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(20,18,16,0.85));
}

.pd-detail-card__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 20px;
  color: var(--white, #fff);
}

.pd-detail-card__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.15;
}

.pd-detail-card__text {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Full-width lifestyle band ---------- */
.pd-band {
  position: relative;
  height: clamp(320px, 50vh, 520px);
  overflow: hidden;
}
.pd-band img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.pd-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.28);
}
.pd-band__cap {
  position: absolute;
  z-index: 2;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Lifestyle copy ---------- */
.pd-lifestyle { text-align: center; }
.pd-lifestyle__inner { max-width: 760px; margin: 0 auto; }
.pd-lifestyle__title { margin-bottom: 24px; }
.pd-lifestyle__body p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-muted, #7A746E);
  margin-bottom: 18px;
}

/* ---------- Transformation (before/after) ---------- */
.pd-transform__head { margin-bottom: 32px; }
.pd-transform__captions {
  display: flex;
  justify-content: space-between;
  max-width: 880px;
  margin: 18px auto 0;
  gap: 16px;
}
.pd-transform__captions span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted, #7A746E);
}
.pd-transform .ba-slider { max-width: 880px; margin: 0 auto; }

/* ---------- Stats row ---------- */
.pd-stats__inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}
.pd-stat__num {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--dark, #2D2926);
  line-height: 1;
  margin-bottom: 8px;
}
.pd-stat__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted, #7A746E);
}

/* ---------- Testimonial ---------- */
.pd-quote { text-align: center; }
.pd-quote__inner { max-width: 820px; margin: 0 auto; }
.pd-quote__mark {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 4rem;
  line-height: 0.5;
  color: var(--gold, #B99863);
  opacity: 0.5;
}
.pd-quote__text {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  color: var(--dark, #2D2926);
  margin: 18px 0 28px;
}
.pd-quote__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark, #2D2926);
}
.pd-quote__role {
  font-size: 12px;
  color: var(--text-muted, #7A746E);
  margin-top: 4px;
}

/* ---------- Investment / next steps ---------- */
.pd-invest__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.pd-invest__title { margin-bottom: 16px; max-width: 16ch; }
.pd-invest__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted, #7A746E);
}
.pd-invest__list { display: grid; gap: 12px; }
.pd-invest__caption {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #B99863);
  margin-bottom: 6px;
}
.pd-invest__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--dark, #2D2926);
}
.pd-invest__item::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--olive, #9C9C80);
  color: var(--white, #fff);
  font-size: 11px;
  display: grid;
  place-items: center;
}
.pd-invest__card {
  background: var(--white, #fff);
  border: 1px solid var(--border, #DDD5CA);
  border-radius: var(--radius-md, 16px);
  padding: 28px;
  box-shadow: var(--shadow-sm, 0 4px 20px rgba(45,41,38,0.06));
}
.pd-invest__card-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted, #7A746E);
  margin-bottom: 10px;
}
.pd-invest__range {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--dark, #2D2926);
  margin-bottom: 20px;
}
.pd-invest__card .btn { width: 100%; justify-content: center; }

/* ---------- Dark closing CTA ---------- */
.pd-cta {
  background: var(--dark, #2D2926);
  color: var(--white, #fff);
  padding: clamp(56px, 8vw, 96px) 0;
}
.pd-cta__inner { max-width: 720px; }
.pd-cta__eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold, #B99863);
  margin-bottom: 16px;
}
.pd-cta__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  margin-bottom: 18px;
}
.pd-cta__text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 30px;
  max-width: 540px;
}
.pd-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.pd-cta .btn--outline {
  color: var(--white, #fff);
  border-color: rgba(255, 255, 255, 0.6);
}
.pd-cta .btn--outline:hover {
  background: var(--white, #fff);
  color: var(--dark, #2D2926);
  border-color: var(--white, #fff);
}

/* ---------- More projects strip ---------- */
.pd-more__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.pd-more__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pd-more-card { display: block; }
.pd-more-card__img {
  overflow: hidden;
  border-radius: var(--radius-md, 16px);
  margin-bottom: 14px;
}
.pd-more-card__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.pd-more-card:hover .pd-more-card__img img { transform: scale(1.05); }
.pd-more-card__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark, #2D2926);
}
.pd-more-card__sub { font-size: 12px; color: var(--text-muted, #7A746E); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .pd-details__grid { grid-template-columns: repeat(2, 1fr); }
  .pd-invest__grid { grid-template-columns: 1fr 1fr; }
  .pd-invest__intro { grid-column: 1 / -1; }
  .pd-more__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .pd-facts__inner { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .pd-fact:nth-child(odd)::before { display: none; }
  .pd-fact + .pd-fact::before { left: -8px; }
  .pd-about__grid { grid-template-columns: 1fr; }
  .pd-about__media { order: -1; }
  .pd-stats__inner { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .pd-invest__grid { grid-template-columns: 1fr; }
  .pd-more__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .pd-facts__inner { grid-template-columns: 1fr 1fr; }
  .pd-details__grid { grid-template-columns: 1fr; }
  .pd-stats__inner { grid-template-columns: 1fr; }
  .pd-more__grid { grid-template-columns: 1fr; }
  .pd-arrow { width: 38px; height: 38px; font-size: 15px; }
  .pd-transform__captions { display: none; }
}
