/* YOULO lib-page.css — Instagram landing page styles */
/* Mobile-first: default = 390px */

.lib-page {
  scroll-behavior: smooth;
}

/* @font-face declarations are in main.css — not duplicated here */

/* ─── CSS Variables ─── */
.lib-page {
  --gold: #DDC73F;
  --lavender: #D7B0DB;
  --dark: #292929;
  --light-bg: #F8F6F4;
  --white: #FFFFFF;
  --border: #EFEBE5;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ─── Section 1: Hero ─── */
.lib-hero {
  background-color: #DDC73F;
  padding: 60px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.lib-hero__logo {
  width: 160px;
  height: auto;
  display: block;
}

.lib-hero__title {
  font-family: 'Bernoru-BlackMedium', sans-serif;
  font-weight: 900;
  font-size: 40px;
  line-height: 1.1;
  color: #292929;
  margin: 0;
  max-width: 560px;
}

.lib-hero__subtitle {
  font-family: 'soleilLight', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #292929;
  margin: 0;
}

.lib-hero__cta {
  display: inline-block;
  background-color: #292929;
  color: #FFFFFF;
  font-family: 'soleilRegular', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 4px;
  transition: opacity 0.15s ease;
}

.lib-hero__cta:hover {
  opacity: 0.85;
}

/* ─── Stamp logo ─── */
.lib-stamp {
  background-color: #F8F6F4;
  padding: 24px 16px 0;
  display: flex;
  justify-content: center;
}
.lib-stamp img {
  width: 100px;
  height: auto;
  display: block;
}

/* ─── Section 2: Quick Links ─── */
.lib-links {
  background-color: #F8F6F4;
  padding: 32px 16px 16px;
}

.lib-links__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.lib-links__card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 16px 20px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: #292929;
  font-family: 'soleilRegular', sans-serif;
  font-size: 16px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.lib-links__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.lib-links__card::after {
  content: '→';
  font-size: 18px;
  color: #292929;
  flex-shrink: 0;
  line-height: 1;
}

/* ─── Section 3: Social Bar ─── */
.lib-social {
  background-color: #F8F6F4;
  padding: 12px 16px 16px;
}

.lib-social__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.lib-social__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #292929;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  border-radius: 50%;
}

.lib-social__icon:hover {
  opacity: 0.65;
  transform: translateY(-2px);
}

.lib-social__icon svg {
  width: 28px;
  height: 28px;
  fill: #292929;
}

/* ─── Section 4: Social Proof ─── */
.lib-proof {
  background-color: #FFFFFF;
  border-top: 1px solid #EFEBE5;
  border-bottom: 1px solid #EFEBE5;
  padding: 16px;
}

.lib-proof__link {
  display: block;
  text-align: center;
  font-family: 'soleilRegular', sans-serif;
  font-size: 14px;
  color: #292929;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.lib-proof__link:hover {
  opacity: 0.7;
}

/* ─── Section 4b: Reviews (BRB) ─── */
.lib-reviews {
  background-color: #F8F6F4;
  padding: 20px 16px 8px;
  display: flex;
  justify-content: center;
}

/* ─── Section 5: Calculator ─── */
.lib-calculator {
  background-color: #F8F6F4;
  padding: 40px 16px;
}

.lib-calculator__title {
  font-family: 'Bernoru-BlackMedium', sans-serif;
  font-weight: 900;
  font-size: 40px;
  line-height: 1.1;
  color: #292929;
  text-align: center;
  margin: 0 0 32px;
}

.lib-calculator__inner {
  max-width: 590px;
  margin: 0 auto;
}

/* ─── Section 6: Gift Cards ─── */
.lib-gifts {
  background-color: #F8F6F4;
  padding: 40px 16px;
}
.lib-gifts__iframe-wrap {
  max-width: 600px;
  margin: 0 auto;
}
.lib-gifts__iframe-wrap iframe {
  border: 0;
  width: 100%;
  display: block;
}

.lib-gifts__title {
  font-family: 'Bernoru-BlackMedium', sans-serif;
  font-weight: 900;
  font-size: 40px;
  line-height: 1.1;
  color: #292929;
  text-align: center;
  margin: 0 0 12px;
}

.lib-gifts__subtitle {
  font-family: 'soleilLight', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #292929;
  text-align: center;
  margin: 0 0 32px;
}

.lib-gifts__scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  /* hide scrollbar but keep functionality */
  scrollbar-width: none;
  max-width: 880px;
  margin: 0 auto;
}

.lib-gifts__scroll::-webkit-scrollbar {
  display: none;
}

.lib-gifts__card {
  border: 1px solid #EFEBE5;
  border-radius: 12px;
  padding: 24px;
  min-width: 75vw;
  max-width: 280px;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.lib-gifts__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: #292929;
  color: #FFFFFF;
  font-family: 'soleilRegular', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.lib-gifts__name {
  font-family: 'Bernoru-BlackMedium', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: #292929;
  margin: 0;
}

.lib-gifts__desc {
  font-family: 'soleilLight', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #292929;
  margin: 0;
  opacity: 0.7;
}

.lib-gifts__price {
  font-family: 'Bernoru-BlackMedium', sans-serif;
  font-weight: 900;
  font-size: 36px;
  color: #DDC73F;
  margin: 8px 0 4px;
  line-height: 1;
}

.lib-gifts__btn {
  display: block;
  width: 100%;
  background-color: #DDC73F;
  color: #292929;
  font-family: 'soleilRegular', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 14px 20px;
  border-radius: 4px;
  margin-top: auto;
  transition: opacity 0.15s ease;
  box-sizing: border-box;
}

.lib-gifts__btn:hover {
  opacity: 0.85;
}

/* ─── Gift scroll hint ─── */
.lib-gifts__hint {
  text-align: center;
  font-family: 'soleilLight', sans-serif;
  font-size: 13px;
  color: #292929;
  opacity: 0.45;
  margin: 12px 0 0;
}

/* ─── Reviews label ─── */
.lib-reviews__label {
  font-family: 'soleilRegular', sans-serif;
  font-size: 12px;
  text-align: center;
  color: #292929;
  opacity: 0.5;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lib-reviews {
  flex-direction: column;
  align-items: center;
}

/* ─── Section 7: Location ─── */
.lib-location {
  background-color: #292929;
  padding: 40px 16px;
  color: #FFFFFF;
}

.lib-location__inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lib-location__title {
  font-family: 'Bernoru-BlackMedium', sans-serif;
  font-weight: 900;
  font-size: 36px;
  line-height: 1.1;
  color: #FFFFFF;
  margin: 0;
}

.lib-location__address {
  font-family: 'soleilLight', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #FFFFFF;
  margin: 0;
  opacity: 0.8;
}

.lib-location__map {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  border: 0;
  display: block;
}

.lib-location__wa {
  display: block;
  width: 100%;
  background-color: #25D366;
  color: #FFFFFF;
  font-family: 'soleilRegular', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 16px 28px;
  border-radius: 4px;
  box-sizing: border-box;
  transition: opacity 0.15s ease;
}

.lib-location__wa:hover {
  opacity: 0.85;
}

/* ─── Breakpoint: tablet 768px ─── */
@media (min-width: 768px) {
  .lib-hero {
    padding: 80px 20px;
  }

  .lib-hero__logo {
    width: 200px;
  }

  .lib-hero__title {
    font-size: 64px;
  }

  .lib-links__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Last card spans full width if odd count */
  .lib-links__card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .lib-calculator__title {
    font-size: 52px;
  }

  .lib-gifts__title {
    font-size: 52px;
  }

  .lib-gifts__scroll {
    overflow-x: visible;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    scroll-snap-type: none;
  }

  .lib-gifts__card {
    min-width: unset;
  }
  .lib-gifts__hint {
    display: none;
  }
}

/* ─── Breakpoint: desktop 1024px ─── */
@media (min-width: 1024px) {
  .lib-links__grid {
    padding: 0;
  }

  .lib-calculator__inner {
    padding: 0;
  }
}
