/* ==========================================================================
   PEPTISSIMA — "PEPTIDES" PAGE
   Section-specific styles, ported 1:1 from the {% stylesheet %} blocks in
   theme_export_shopify/sections/peptides-*.liquid.
   ========================================================================== */

/* ---- peptides-hero ---- */

.peptides-hero {
  background: var(--surface);
  padding-bottom: var(--section-y);
}

.peptides-hero__grid {
  display: grid;
  grid-template-columns: 54fr 46fr;
  align-items: center;
  gap: 0;
}

.peptides-hero__copy {
  display: flex;
  justify-content: flex-end;
  padding: var(--section-y) 48px var(--section-y) 0;
}

.peptides-hero__copy-inner {
  width: 100%;
  max-width: calc(var(--container) * 0.54);
  padding-left: var(--gutter);
}

.peptides-hero__body {
  max-width: 54ch;
  line-height: 1.85;
  margin-top: 28px;
}

.peptides-hero__body + .peptides-hero__body {
  margin-top: 16px;
}

.peptides-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 40px;
}

.peptides-hero__secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
}

.peptides-hero__secondary svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.peptides-hero__secondary:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.peptides-hero__secondary:hover svg {
  transform: translateX(3px);
}

.peptides-hero__media-col {
  padding: var(--section-y) var(--gutter) var(--section-y) 0;
}

.peptides-hero__frame {
  position: relative;
}

.peptides-hero__frame::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -20px;
  bottom: -20px;
  left: 24px;
  border: 1px solid var(--gold);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.peptides-hero__media {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
}

.peptides-hero__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.peptides-hero__feature .p-feature__icon svg {
  width: 26px;
  height: 26px;
}

@media screen and (max-width: 1024px) {
  .peptides-hero__grid {
    grid-template-columns: 1fr;
  }

  .peptides-hero__copy {
    order: 2;
    justify-content: flex-start;
    padding: var(--section-y) 0 0;
  }

  .peptides-hero__copy-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
  }

  .peptides-hero__media-col {
    order: 1;
    padding: var(--section-y) var(--gutter) 0;
  }

  .peptides-hero__frame::after {
    display: none;
  }

  .peptides-hero__features {
    gap: 32px;
    margin-top: var(--section-y);
    padding-top: 32px;
  }
}

@media screen and (max-width: 749px) {
  .peptides-hero__body {
    max-width: none;
  }

  .peptides-hero__ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .peptides-hero__ctas .btn-primary {
    width: 100%;
  }

  .peptides-hero__features {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---- peptides-definition ---- */

.peptides-definition {
  background: var(--surface-alt);
}

.peptides-definition__split {
  align-items: start;
}

.peptides-definition__figure {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.peptides-definition__media {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--line);
}

.peptides-definition__caption {
  margin-top: 16px;
  font-style: italic;
}

.peptides-definition__notes {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.peptides-definition__note {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.peptides-definition__num {
  color: var(--gold-deep);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-style: italic;
  font-weight: 700;
  line-height: 1.3;
}

.peptides-definition__note-title {
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 4px 0 0;
}

.peptides-definition__note-text {
  color: var(--text);
  opacity: 0.72;
  font-size: var(--text-sm);
  line-height: 1.75;
  margin: 10px 0 0;
}

@media screen and (max-width: 1024px) {
  .peptides-definition__figure {
    position: static;
  }

  .peptides-definition__notes {
    margin-top: 32px;
  }

  .peptides-definition__note {
    padding: 24px 0;
  }
}

@media screen and (max-width: 749px) {
  .peptides-definition__note {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 16px;
  }

  .peptides-definition__num {
    font-size: var(--text-md);
  }
}

/* ---- peptides-function ---- */

.peptides-function {
  background: var(--surface);
}

.peptides-function__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 56px;
}

.peptides-function__item {
  position: relative;
  padding: 8px 32px 0;
  border-left: 1px solid var(--line);
}

.peptides-function__item:first-child {
  padding-left: 0;
  border-left: 0;
}

.peptides-function__item:last-child {
  padding-right: 0;
}

.peptides-function__num {
  position: absolute;
  top: -14px;
  right: 24px;
  color: var(--text);
  opacity: 0.09;
  font-family: var(--font-serif);
  font-size: 64px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.peptides-function__item:last-child .peptides-function__num {
  right: 0;
}

.peptides-function__icon svg {
  width: 28px;
  height: 28px;
}

.peptides-function__title {
  position: relative;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
  margin: 24px 0 0;
}

.peptides-function__text {
  position: relative;
  color: var(--text);
  opacity: 0.7;
  font-size: var(--text-sm);
  line-height: 1.75;
  margin: 12px 0 0;
}

.peptides-function__note {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-style: italic;
}

@media screen and (max-width: 1024px) {
  .peptides-function__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
    margin-top: 48px;
  }

  .peptides-function__item {
    padding: 8px 24px 0;
  }

  .peptides-function__item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .peptides-function__item:nth-child(even) {
    padding-right: 0;
  }

  .peptides-function__num {
    font-size: 56px;
  }

  .peptides-function__note {
    margin-top: 48px;
  }
}

@media screen and (max-width: 749px) {
  .peptides-function__grid {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .peptides-function__item,
  .peptides-function__item:nth-child(odd),
  .peptides-function__item:nth-child(even) {
    padding: 28px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .peptides-function__item:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .peptides-function__num {
    top: 12px;
    right: 0;
    font-size: 48px;
  }

  .peptides-function__item:first-child .peptides-function__num {
    top: -8px;
  }
}

/* ---- peptides-areas ---- */

.peptides-areas {
  background: var(--surface);
}

.peptides-areas__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 40px;
  margin-top: 56px;
}

.peptides-areas__item {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.peptides-areas__item::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--gold);
}

.peptides-areas__icon svg {
  width: 26px;
  height: 26px;
}

.peptides-areas__title {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
  margin: 20px 0 0;
}

.peptides-areas__text {
  color: var(--text);
  opacity: 0.7;
  font-size: var(--text-sm);
  line-height: 1.75;
  margin: 10px 0 0;
}

.peptides-areas__note {
  margin-top: 64px;
}

@media screen and (max-width: 1024px) {
  .peptides-areas__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
    margin-top: 48px;
  }

  .peptides-areas__note {
    margin-top: 48px;
  }
}

@media screen and (max-width: 749px) {
  .peptides-areas__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .peptides-areas__item {
    padding-top: 24px;
  }

  .peptides-areas__title {
    font-size: var(--text-md);
    margin-top: 16px;
  }
}

/* ---- peptides-terminology ---- */

.peptides-terminology {
  background: var(--surface-alt);
}

.peptides-terminology__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 64px;
  margin: 56px 0 0;
  padding: 0;
}

.peptides-terminology__entry {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.peptides-terminology__entry:nth-child(1),
.peptides-terminology__entry:nth-child(2) {
  border-top: 1px solid var(--line);
}

.peptides-terminology__term {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.peptides-terminology__def {
  color: var(--text);
  opacity: 0.7;
  font-size: var(--text-sm);
  line-height: 1.7;
  margin: 8px 0 0;
}

.peptides-terminology__cta {
  margin-top: 48px;
}

@media screen and (max-width: 1024px) {
  .peptides-terminology__list {
    gap: 0 40px;
    margin-top: 48px;
  }

  .peptides-terminology__entry {
    padding: 22px 0;
  }
}

@media screen and (max-width: 749px) {
  .peptides-terminology__list {
    grid-template-columns: 1fr;
  }

  .peptides-terminology__entry:nth-child(2) {
    border-top: 0;
  }

  .peptides-terminology__cta {
    margin-top: 40px;
  }
}

/* ---- peptides-responsible ---- */

.peptides-responsible {
  background: var(--surface);
}

.peptides-responsible__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin-top: 64px;
  text-align: center;
}

.peptides-responsible__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.peptides-responsible__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  flex: 0 0 auto;
}

.peptides-responsible__icon svg {
  width: 26px;
  height: 26px;
}

.peptides-responsible__title {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
  margin: 24px 0 0;
}

.peptides-responsible__text {
  color: var(--text);
  opacity: 0.7;
  font-size: var(--text-sm);
  line-height: 1.75;
  max-width: 34ch;
  margin: 12px 0 0;
}

@media screen and (max-width: 1024px) {
  .peptides-responsible__grid {
    gap: 40px 32px;
    margin-top: 48px;
  }

  .peptides-responsible__icon {
    width: 56px;
    height: 56px;
  }

  .peptides-responsible__title {
    font-size: var(--text-md);
    margin-top: 20px;
  }
}

@media screen and (max-width: 749px) {
  .peptides-responsible__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .peptides-responsible__text {
    max-width: none;
  }
}

/* ---- peptides-faq ---- */

.peptides-faq {
  background: var(--surface-alt);
}

.peptides-faq__split {
  display: grid;
  grid-template-columns: 34fr 66fr;
  gap: 64px;
  align-items: start;
}

.peptides-faq__aside {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.peptides-faq__list {
  border-top: 1px solid var(--line);
}

.peptides-faq__panel {
  border-bottom: 1px solid var(--line);
}

.peptides-faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.peptides-faq__summary::-webkit-details-marker {
  display: none;
}

.peptides-faq__summary:hover {
  color: var(--red);
}

.peptides-faq__summary svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--gold-deep);
  transition: transform 0.2s ease;
}

.peptides-faq__panel[open] > .peptides-faq__summary svg {
  transform: rotate(180deg);
}

.peptides-faq__answer {
  padding: 0 48px 28px 0;
  max-width: 68ch;
}

@media screen and (max-width: 1024px) {
  .peptides-faq__split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .peptides-faq__aside {
    position: static;
  }
}

@media screen and (max-width: 749px) {
  .peptides-faq__summary {
    font-size: var(--text-base);
    gap: 16px;
    padding: 20px 0;
  }

  .peptides-faq__answer {
    padding-right: 0;
    padding-bottom: 24px;
  }
}

/* ---- peptides-continue ---- */

.peptides-continue {
  background: var(--surface);
}

.peptides-continue__grid {
  margin-top: 56px;
  align-items: stretch;
}

.peptides-continue__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  height: 100%;
}

.peptides-continue__icon svg {
  width: 26px;
  height: 26px;
}

.peptides-continue__title {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
  margin: 24px 0 0;
}

.peptides-continue__text {
  margin-top: 10px;
}

.peptides-continue__cta {
  margin-top: auto;
  padding-top: 28px;
  padding-bottom: 0;
  border: 0;
  color: var(--red);
  letter-spacing: 0.08em;
}

.peptides-continue__cta:hover {
  background: transparent;
  transform: none;
  color: var(--navy);
}

.peptides-continue__cta svg {
  width: 14px;
  height: 14px;
}

.peptides-continue__card:hover .peptides-continue__title {
  color: var(--red);
}

@media screen and (max-width: 1024px) {
  .peptides-continue__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 48px;
  }

  .peptides-continue__card {
    padding: 24px;
  }

  .peptides-continue__title {
    font-size: var(--text-md);
    margin-top: 20px;
  }
}

@media screen and (max-width: 749px) {
  .peptides-continue__grid {
    grid-template-columns: 1fr;
  }

  .peptides-continue__card {
    padding: 28px;
  }

  .peptides-continue__cta {
    padding-top: 24px;
  }
}
