/* ==========================================================
   Landing pages (bracelet.php) - loaded after shop.css
   ========================================================== */

/* ---------- Hero ---------- */
.lp-hero .crumbs {
  margin-bottom: 20px;
}

.lp-hero__title {
  /* capped by the column width (cqi) so the longest titles, e.g. Mangalsutra, stay on three lines */
  font-size: min(clamp(2.5rem, 5vw, 4.4rem), 10.2cqi);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}

.lp-hero__title em {
  font-style: italic;
  font-weight: 400;
  background: var(--grad-text);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

.lp-hero .hero__text strong {
  color: var(--ink);
  font-weight: 600;
}

/* collage of three bracelet photos inside an arched frame */
.lp-collage {
  position: relative;
  aspect-ratio: 4 / 4.3;
  max-width: 540px;
  width: 100%;
  justify-self: center;
}

.lp-collage::before {
  content: "";
  position: absolute;
  inset: 4% 8% 0;
  border-radius: 240px 240px 28px 28px;
  border: 1px solid rgba(220, 226, 236, .22);
  background: radial-gradient(circle at 50% 30%, rgba(220, 226, 236, .12), transparent 65%);
}

.lp-collage__card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .95);
  background: #111;
}

.lp-collage__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.lp-collage__card:hover img {
  transform: scale(1.07);
}

.lp-collage__card--main {
  top: 10%;
  left: 18%;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 180px 180px 24px 24px;
  z-index: 2;
}

.lp-collage__card--a {
  left: 0;
  bottom: 6%;
  width: 34%;
  aspect-ratio: 1;
  z-index: 3;
  transform: rotate(-6deg);
  animation: lpFloat 7s ease-in-out infinite;
}

.lp-collage__card--b {
  right: 0;
  top: 4%;
  width: 30%;
  aspect-ratio: 1;
  z-index: 1;
  transform: rotate(7deg);
  animation: lpFloat 8s ease-in-out infinite -3s;
}

@keyframes lpFloat {
  50% {
    translate: 0 -12px;
  }
}

.lp-collage__badge {
  right: 4%;
  bottom: 12%;
  top: auto;
  z-index: 4;
}

.lp-hero .hero__grid {
  align-items: center;
}

/* ---------- 6 featured designs ---------- */
.lp-products .section__head p {
  max-width: 640px;
  margin-inline: auto;
}

.lp-grid .shop-card.reveal {
  transition: opacity .9s var(--ease), transform .6s var(--ease), box-shadow .5s, border-color .4s;
}

.lp-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 48px;
  text-align: center;
}

.lp-more p {
  max-width: 560px;
  margin: 0;
  color: var(--text);
}

.lp-more strong {
  color: var(--ink);
}

/* ---------- Bracelet types ---------- */
.lp-types__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.lp-type {
  position: relative;
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #141416, #0c0c0e);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}

.lp-type::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at 100% 0%, rgba(220, 226, 236, .1), transparent 60%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}

.lp-type:hover {
  transform: translateY(-6px);
  border-color: rgba(220, 226, 236, .3);
  box-shadow: var(--shadow-lg);
}

.lp-type:hover::after {
  opacity: 1;
}

.lp-type__icon {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-size: 1.3rem;
  transition: background .45s, color .45s, border-color .45s, transform .6s var(--ease);
}

.lp-type:hover .lp-type__icon {
  background: var(--grad-silver);
  border-color: transparent;
  color: #0a0a0b;
  transform: rotate(-10deg);
}

.lp-type h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.lp-type p {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Who we supply ---------- */
.lp-buyers__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}

.lp-buyers__intro p {
  color: var(--text);
  margin-bottom: 28px;
}

.lp-buyers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.lp-buyer {
  padding: 26px 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .72);
  transition: transform .5s var(--ease), box-shadow .5s, background .4s;
}

.lp-buyer:hover {
  transform: translateY(-6px);
  background: #fff;
  box-shadow: var(--shadow);
}

.lp-buyer i {
  font-size: 1.6rem;
  color: var(--ink);
}

.lp-buyer h3 {
  margin: 14px 0 6px;
  font-size: 1.3rem;
}

.lp-buyer p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text);
}

/* ---------- Long-form SEO content ---------- */
.lp-content__layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.lp-article p {
  color: var(--text);
  line-height: 1.8;
}

.lp-article p strong {
  color: var(--ink);
}

.lp-article h3 {
  margin: 34px 0 12px;
  font-size: 1.6rem;
}

.lp-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.lp-aside__card {
  padding: 30px 26px;
  border-radius: 24px;
  background: #0d0e10;
  color: #b5b9c1;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.lp-aside__stamp {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}

.lp-aside__card h3 {
  font-size: 1.6rem;
  color: #f3f4f6;
}

.lp-aside__card p {
  font-size: .9rem;
  margin-bottom: 20px;
}

/* black card inside a silver section: use the black-section button style */
:is(main, .footer) .is-silver .lp-aside .btn--silver {
  --btn-fill: #0a0a0b;
  --btn-hover-text: #f3f4f6;
  background: var(--grad-silver);
  background-size: 200% 100%;
  color: #0a0a0b;
}

.lp-aside__contact {
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: grid;
  gap: 10px;
  text-align: left;
  font-size: .86rem;
}

.lp-aside__contact li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lp-aside__contact i {
  width: 16px;
  color: #c8cdd5;
}

.lp-aside__contact a {
  color: #f3f4f6;
}

.lp-aside__contact a:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .lp-types__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .lp-collage {
    max-width: 440px;
    margin-top: 10px;
  }

  .lp-buyers__layout,
  .lp-content__layout {
    grid-template-columns: 1fr;
  }

  .lp-aside {
    position: static;
  }

  .lp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .lp-types__grid,
  .lp-buyers__grid {
    grid-template-columns: 1fr;
  }

  .lp-collage__badge {
    right: 0;
    bottom: 4%;
  }

  .lp-article h3 {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-collage__card--a,
  .lp-collage__card--b,
  .lp-hero__title em {
    animation: none;
  }
}

/* desktop: sit the photo collage a little lower, level with the heading instead of the breadcrumb */
@media (min-width: 901px) {
  .lp-collage {
    margin-top: 70px;
  }
}

/* Odd last card (e.g. 3 products) sits centred in the 2-column grid */
@media (max-width: 900px) {
  .lp-grid > .shop-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 11px);
  }
}

@media (max-width: 640px) {
  .lp-grid > .shop-card:last-child:nth-child(odd) {
    width: calc(50% - 6px);
  }
}

/* Pages with one or two products keep cards centred */
.lp-grid:has(> .shop-card:only-child) {
  grid-template-columns: minmax(0, 380px);
  justify-content: center;
}

.lp-grid:has(> .shop-card:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
}

.lp-grid > .shop-card:only-child:nth-child(1) {
  grid-column: auto;
  width: auto;
}

@media (max-width: 640px) {
  .lp-grid:has(> .shop-card:only-child) {
    grid-template-columns: minmax(0, 300px);
  }
}
