/* Project: Feature Paint Detail Page */

.p-paint-detail {
  background: #fff;
  color: #0b1a2a;
}

.pd-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.pd-hero {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  padding: 112px 16px 80px;
  overflow: hidden;
  color: #fff;
}

.pd-hero__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.pd-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 320px at 18% 12%, rgba(255, 255, 255, 0.16), transparent 62%),
    linear-gradient(135deg, rgba(7, 29, 50, 0.82), rgba(22, 78, 116, 0.64));
}

.pd-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -48px;
  height: 96px;
  background: #fff;
  transform: rotate(-2deg);
}

.pd-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  text-align: center;
}

.pd-hero__eyebrow,
.pd-heading__eyebrow,
.pd-cta__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pd-hero__eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.pd-hero__title {
  margin-top: 10px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.16;
  letter-spacing: 0.08em;
}

.pd-hero__lead {
  margin: 16px auto 0;
  max-width: 720px;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.9;
}

.pd-section {
  padding: 78px 0;
}

.pd-section--soft {
  background:
    radial-gradient(820px 260px at 0% 0%, rgba(58, 124, 165, 0.08), transparent 62%),
    #f5f8fc;
}

.pd-heading {
  margin-bottom: 28px;
}

.pd-heading--center {
  text-align: center;
}

.pd-heading__eyebrow {
  color: var(--primary-blue, #3a7ca5);
}

.pd-heading__title {
  margin-top: 8px;
  font-size: clamp(24px, 3.8vw, 38px);
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.pd-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.pd-intro__body {
  min-width: 0;
}

.pd-intro__title {
  margin-top: 10px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.pd-intro__text {
  margin-top: 18px;
  color: #334b64;
  font-size: 16px;
  line-height: 2;
}

.pd-spec-list {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid #e2ebf2;
}

.pd-spec-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e2ebf2;
}

.pd-spec-list dt {
  color: #0e3a6b;
  font-weight: 700;
}

.pd-spec-list dd {
  min-width: 0;
  color: #40576e;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.pd-intro__image {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 24px 48px -34px rgba(8, 31, 53, 0.55);
}

.pd-intro__image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pd-gallery-section {
  padding-top: 0;
}

.pd-paint-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pd-paint-gallery__item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(12, 40, 80, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 32px -28px rgba(8, 31, 53, 0.45);
}

.pd-paint-gallery__button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.pd-paint-gallery__button img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pd-paint-gallery__button:hover img,
.pd-paint-gallery__button:focus-visible img {
  transform: scale(1.04);
}

.pd-paint-gallery__button:focus-visible {
  outline: 3px solid rgba(58, 124, 165, 0.45);
  outline-offset: -3px;
}

.pd-paint-gallery__item figcaption {
  padding: 12px 14px;
  color: #40576e;
  font-size: 14px;
  font-weight: 700;
}

.pd-image-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.pd-image-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pd-image-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 31, 0.78);
  backdrop-filter: blur(4px);
}

.pd-image-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 60px -28px rgba(0, 0, 0, 0.65);
}

.pd-image-modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--primary-blue, #3a7ca5);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.6);
}

.pd-image-modal__image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 12px;
  background: #f1f6fb;
}

.pd-image-modal__caption {
  margin-top: 12px;
  color: #334b64;
  font-weight: 700;
  text-align: center;
}

body.is-modal-open {
  overflow: hidden;
}

.pd-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.pd-card {
  min-width: 0;
  padding: 26px 22px;
  border: 1px solid rgba(12, 40, 80, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 32px -28px rgba(8, 31, 53, 0.45);
}

.pd-card__num {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue, #3a7ca5), #174b72);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.pd-card p {
  margin-top: 16px;
  color: #40576e;
  font-size: 15px;
  line-height: 1.85;
}

.pd-recommend {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.pd-check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.pd-check-list li {
  position: relative;
  padding: 18px 18px 18px 48px;
  border: 1px solid rgba(12, 40, 80, 0.08);
  border-radius: 14px;
  background: #fff;
  color: #334b64;
  line-height: 1.8;
  box-shadow: 0 12px 28px -26px rgba(8, 31, 53, 0.4);
}

.pd-check-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 1.45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-blue, #3a7ca5);
  box-shadow: 0 0 0 4px rgba(58, 124, 165, 0.16);
}

.pd-related {
  padding: 72px 0;
  background: #f5f8fc;
}

.pd-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pd-related__item {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 20px 18px;
  border: 1px solid rgba(12, 40, 80, 0.08);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  box-shadow: 0 14px 30px -28px rgba(8, 31, 53, 0.42);
}

.pd-related__item span {
  color: var(--primary-blue, #3a7ca5);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.pd-related__item strong {
  font-size: 18px;
  line-height: 1.5;
}

.pd-cta {
  padding: 56px 0;
  color: #fff;
  background: linear-gradient(135deg, #0e2a47 0%, var(--primary-blue, #3a7ca5) 100%);
}

.pd-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.pd-cta__eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.pd-cta__title {
  margin-top: 8px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.5;
}

.pd-cta .c-btn {
  margin-top: 0;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .pd-intro,
  .pd-recommend,
  .pd-cta__inner {
    grid-template-columns: 1fr;
  }

  .pd-card-grid,
  .pd-paint-gallery,
  .pd-related__grid {
    grid-template-columns: 1fr;
  }

  .pd-cta__inner {
    text-align: center;
  }

  .pd-cta .c-btn {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .pd-container {
    width: min(100% - 24px, 1120px);
  }

  .pd-hero {
    min-height: 380px;
    padding: 96px 12px 68px;
  }

  .pd-hero__lead {
    text-align: left;
  }

  .pd-section,
  .pd-related {
    padding: 56px 0;
  }

  .pd-hero__title,
  .pd-intro__title,
  .pd-heading__title,
  .pd-cta__title {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .pd-intro__text,
  .pd-card p,
  .pd-spec-list dd,
  .pd-check-list li {
    font-size: 15px;
    line-height: 1.9;
  }

  .pd-spec-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pd-card,
  .pd-related__item {
    padding: 22px 18px;
  }

  .pd-image-modal {
    padding: 14px;
  }

  .pd-image-modal__dialog {
    padding: 12px;
  }

  .pd-image-modal__close {
    top: 8px;
    right: 8px;
  }
}
