/* ============================================
   IMPORTS
   ============================================ */
@import url(https://fonts.bunny.net/css?family=codystar:300);

/* ============================================
   HEADER & TITLE
   ============================================ */
header.pearls-header {
  width: 75%;
  margin: 0 auto;
}

.pearls-icon {
  width: 150px;
  height: 150px;
  border-radius: 50%;
}

h1.title-pearls {
  font-family: 'Codystar', display;
  opacity: 0.8;
  font-size: 6rem;
}

h2.subtitle-pearls {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.2rem;
  line-height: 1.8rem;
  text-align: center;
}

/* ============================================
   ARTICLE & CONTAINER
   ============================================ */
article.pearls {
  background-color: #fff;
  width: 75%;
  max-width: 1000px;
  margin: 0 auto;
}

.pearls-page-divider {
  width: 400px;
  height: 1px;
  background-color: #999;
  margin: 50px auto;
}

/* ============================================
   BASE PANEL & TEXT STYLES
   ============================================ */
.panel-pearls {
  width: 100%;
  height: auto;
  display: block;
  background-color: #fff;
}

.text-block-pearls {
  background-color: #fff;
  padding: 0 5px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-block-pearls p {
  font-family: 'Courier New', monospace;
  font-size: 1.15rem;
  line-height: 1.8;
  margin: 0;
  text-align: justify;
}

/* ============================================
   MIDDLE ROW (Pages A, C) - BASE
   ============================================ */
.middle-row {
  display: grid;
  gap: 1rem;
}

/* ============================================
   PAGE 4 ROW 4 - BASE
   ============================================ */
.pearls-p4-row4 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
  margin-right: 0;
  margin-left: 0;
}

.pearls-paneld9 {
  width: 100%;
}

.pearls-paneld10-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.pearls-panel-d10 {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.pearls-d10-overlay-text {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 40%;
  font-family: 'Courier New', monospace;
  font-size: 1.15rem;
  line-height: 1.6;
  text-align: left;
}

.pearls-d10-overlay-text p {
  margin: 0;
}

/* ============================================
   SPLASH PAGE (Page E) - BASE
   ============================================ */
.pearls-splash-page {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  position: relative;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.pearls-splash-sticky-wrapper {
  position: relative;
  height: 300vh;
}

.pearls-splash-image-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: 150vh;
  overflow: hidden;
}

.pearls-splash-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.pearls-splash-text {
  position: absolute;
  z-index: 10;
}

.pearls-splash-text p {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 1.15rem;
  line-height: 1rem;
  max-width: 500px;
}

.pearls-splash-text p span {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 4px 8px;
  margin: 0;
  line-height: 1.5;
}

.pearls-splash-text-1 {
  top: 115vh;
  right: 10%;
}

.pearls-splash-text-2 {
  top: 135vh;
  right: 8%;
}

.pearls-splash-text-3 {
  top: 150vh;
  right: 10%;
}

.pearls-splash-text-4 {
  top: 170vh;
  right: 8%;
}

.pearls-splash-text-5 {
  top: 190vh;
  right: 15%;
}

.pearls-splash-text-6 {
  top: 220vh;
  left: 5%;
}

.pearls-splash-text-7 {
  top: 240vh;
  right: 10%;
}

/* ============================================
   PAGE 6 - BASE
   ============================================ */
.page-6 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rows-one-two {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.pearls-panel-f1 {
  grid-column: 1 / 3;
  grid-row: 1;
}

.pearls-panel-f2 {
  grid-column: 1;
  grid-row: 2;
}

.pearls-panel-f3 {
  grid-column: 2;
  grid-row: 2;
}

.pearls-text-block-p6 {
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #fff;
  padding: 0 20px;
}

.pearls-text-block-p6 p {
  font-family: 'Courier New', monospace;
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

.page-6 .row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pearls-panel-equal {
  width: 100%;
}

.page-6 .row-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.page-6 .row-four {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
}

/* ============================================
   BUY BUTTON
   ============================================ */
section.bgfd-buy-button {
  background-color: #a95f80;
  height: 40px;
  width: 400px;
  padding: 15px;
  border-radius: 15px;
  margin: 0 auto;
}

section.bgfd-buy-button a {
  text-decoration: none;
  color: white;
  line-height: 15px;
}

/* ============================================
   DESKTOP STYLES (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
  /* Middle row desktop layout */
  .middle-row {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  
  .pearls-panel-a4,
  .pearls-panel-c4 { 
    grid-column: 1; 
    grid-row: 1; 
  }
  
  .pearls-panel-a7,
  .pearls-panel-c6 { 
    grid-column: 1; 
    grid-row: 2; 
  }
  
  .text-block-pearls-wrapper { 
    grid-column: 2; 
    grid-row: 1 / 3; 
  }
  
  .pearls-panel-a5,
  .pearls-panel-c5 { 
    grid-column: 3; 
    grid-row: 1; 
  }
  
  .pearls-panel-a6,
  .pearls-panel-c7 { 
    grid-column: 3; 
    grid-row: 2; 
  }
}

/* ============================================
   MOBILE STYLES (max-width: 767px)
   ============================================ */
@media (max-width: 767px) {
  /* Header & Title */
  h1.title-pearls {
    font-size: 3rem;
  }
  
  h2.subtitle-pearls {
    text-align: justify;
  }
  
  /* Article */
  article.pearls {
    width: 100%;
    padding: 0 !important;
  }
  
  article.pearls p {
    font-size: 1rem;
  }
  
  /* Text blocks */
  .text-block-pearls {
    padding: 10px;
  }
  
  .text-block-pearls p {
    font-size: 1.2rem;
  }
  
  /* Middle row mobile layout */
  .middle-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    margin-bottom: 1rem;
  }
  
  .pearls-panel-a4,
  .pearls-panel-c4 {
    grid-row: 1;
  }
  
  .pearls-panel-a5,
  .pearls-panel-c5 {
    grid-row: 2;
  }
  
  .pearls-panel-a6,
  .pearls-panel-c6 {
    grid-row: 3;
  }
  
  .text-block-wrapper {
    grid-row: 4;
  }
  
  .pearls-panel-a7,
  .pearls-panel-c7 {
    grid-row: 5;
  }
  
  /* Page 4 Row 4 mobile */
  .pearls-p4-row4 {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
  }
  
  .pearls-panel-d9 {
    width: 100%;
  }
  
  .pearls-paneld10-wrapper {
    position: relative;  
    width: 100%;
    border-right: 4px solid #000;
  }
  
  .pearls-panel-d10 {
    object-fit: cover;
    object-position: left center;
    width: 100%;
    aspect-ratio: 1 / 1;
  }
  
  .pearls-d10-overlay-text {
    position: absolute;
    top: auto;
    bottom: 20px !important;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    max-width: 100%;
    text-align: left;
    padding: 0 10px 0 115px;
    margin: 0;
  }
  
  .pearls-d10-overlay-text p {
    margin: 0;
    background-color: #000;
    color: #fff;
    line-height: 1.4;
    padding: 10px;
  }
  
  /* Splash page mobile */
  .pearls-splash-page,
  .spearls-plash-sticky-wrapper,
  .pearls-splash-image-container {
    margin-left: -12px !important;
    margin-right: -12px !important;
    width: calc(100vw + 24px) !important;
    max-width: none !important;
    padding: 0 !important;
  }
  
  .spearls-plash-sticky-wrapper {
    height: 400vh;
  }
  
  .pearls-splash-image-container {
    height: 110vh;
    width: 100vw;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
  }
  
  .pearls-splash-image {
    object-fit: cover;
    object-position: left center;
  }
  
  .pearls-splash-text {
    right: 5%;
    left: auto;
    max-width: 98%;
    padding-left: 20px;
  }
  
  .pearls-splash-text p {
    font-size: 0.7rem;
    max-width: 100%;
  }
  
  .splash-text p span {
    text-align: right;
  }
  
  .pearls-splash-text-1 {
    top: 110vh;
  }
  
  .pearls-splash-text-2 {
    top: 130vh;
    padding-left: 15%;
  }
  
  .pearls-splash-text-3 {
    top: 150vh;
  }
  
  .pearls-splash-text-4 {
    top: 170vh;
  }
  
  .pearls-splash-text-5 {
    top: 190vh;
  }
  
  .pearls-splash-text-6 {
    top: 220vh;
  }
  
  .pearls-splash-text-7 {
    top: 240vh;
  }
  
  /* Page 6 mobile */
  .page-6 .rows-one-two,
  .page-6 .row-three,
  .page-6 .row-four {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .pearls-panel-f1 {
    grid-column: 1;
    grid-row: auto;
  }
  
  .pearls-text-block-p6 {
    grid-column: 1;
    grid-row: auto;
    padding: 15px;
  }
  
  .pearls-panel-f2,
  .pearls-panel-f3 {
    grid-column: 1;
    grid-row: auto;
  }
  
  .pearls-text-block-p6 p {
    font-size: 1.2rem;
  }
  
  .pearls-panel-wide img {
    width: 100%;
    height: auto;
  }
  
  /* Buy button mobile */
  section.bgfd-buy-button {
    width: 350px;
  }
}

/* ============================================
   TABLET BREAKPOINT (max-width: 834px)
   ============================================ */
@media (max-width: 834px) {
  article.pearls {
    width: 100%;
  }
  
  article.pearls p {
    font-size: 1rem;
  }
}