/* =========================================================
   PEARL MAKHANA
========================================================= */
:root {
  --pm-cream: #F7F1E4;
  --pm-paper: #FCFAF4;
  --pm-sand: #E7DCC6;
  --pm-green: #163C2C;
  --pm-green-dark: #0D2A1E;
  --pm-gold: #B4813A;
  --pm-gold-soft: #E4C98A;
  --pm-ink: #2C261F;
  --pm-ink-soft: #5E554A;
  --pm-logo: #F7F7F7;
  --pm-pack: #F4F4F2;
  --pm-line: rgba(44, 38, 31, 0.12);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--pm-ink);
  background: var(--pm-paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
p { line-height: 1.7; color: var(--pm-ink-soft); text-wrap: pretty; }
h1, h2, h3 { text-wrap: pretty; }

::selection { background: #E7D3A4; color: var(--pm-green-dark); }

section[id], footer[id] { scroll-margin-top: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #preloader { display: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   TYPE
========================================================= */
.pm-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--pm-gold);
  margin: 0 0 0.85rem;
}

.pm-section-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.05rem, 3.3vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--pm-green-dark);
  margin: 0;
  max-width: 16ch;
}

.pm-section-heading-sm {
  font-size: clamp(1.7rem, 2.4vw, 2.25rem);
  max-width: 18ch;
}

/* =========================================================
   BUTTONS
========================================================= */
.pm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.pm-btn i { font-size: 1.15rem; line-height: 1; }

.pm-btn-whatsapp {
  background: var(--pm-green);
  color: var(--pm-paper);
}

.pm-btn-whatsapp:hover {
  background: var(--pm-green-dark);
  color: #fff;
  transform: translateY(-1px);
}

.pm-btn-whatsapp-light {
  background: var(--pm-cream);
  color: var(--pm-green-dark);
}

.pm-btn-whatsapp-light:hover {
  background: #fff;
  color: var(--pm-green-dark);
}

.pm-btn-solid {
  background: var(--pm-green);
  color: var(--pm-paper);
}

.pm-btn-solid:hover {
  background: var(--pm-green-dark);
  color: #fff;
}

.pm-text-link {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--pm-green);
  border-bottom: 1px solid rgba(22, 60, 44, 0.35);
  padding-bottom: 0.12rem;
  width: fit-content;
}

.pm-text-link:hover { border-bottom-color: var(--pm-gold); color: var(--pm-green-dark); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--pm-gold);
  outline-offset: 3px;
}

/* =========================================================
   PRELOADER
========================================================= */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity 0.65s ease;
}

#preloader.is-done {
  opacity: 0;
  pointer-events: none;
}

#preloader video {
  width: min(880px, 92vw);
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: #fff;
}

/* =========================================================
   HEADER
========================================================= */
.pm-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--pm-logo);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pm-navbar.scrolled {
  border-bottom-color: var(--pm-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.pm-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 92px;
}

.pm-brand { display: flex; align-items: center; flex: 0 0 auto; }

.pm-brand-logo {
  height: 84px;
  width: auto;
  object-fit: contain;
}

.pm-nav-links {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.nav-link-item {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--pm-green-dark);
  position: relative;
  padding: 0.2rem 0;
}

.nav-link-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--pm-gold);
  transition: width 0.25s ease;
}

.nav-link-item:hover::after { width: 100%; }

.pm-hamburger {
  display: none;
  position: relative;
  z-index: 1200;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
}

.pm-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--pm-green-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.pm-hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.pm-hamburger.active span:nth-child(2) { opacity: 0; }
.pm-hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

body.nav-open { overflow: hidden; }

/* =========================================================
   HERO
========================================================= */
.pm-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  grid-template-rows: 1fr auto auto 1fr;
  min-height: calc(100dvh - 96px);
  background: var(--pm-cream);
}

.pm-hero-copy {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  padding: 1.5rem clamp(1.25rem, 4vw, 4.25rem) 0.35rem;
  max-width: 680px;
}

.pm-hero h1 {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 4.8vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--pm-green-dark);
  text-wrap: wrap;
}

.pm-hero-aside {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
  padding: 1.15rem clamp(1.25rem, 4vw, 4.25rem) 2.5rem;
  max-width: 680px;
}

.pm-hero-desc {
  font-size: 1.08rem;
  max-width: 38ch;
  margin: 0 0 1.5rem;
  color: var(--pm-ink-soft);
}

.pm-hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.15rem 1.4rem;
}

.pm-hero-media {
  grid-column: 2;
  grid-row: 1 / -1;
  position: relative;
  min-height: 420px;
  background: #d7e3c4;
}

.pm-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.pm-hero-media::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(140px, 22%);
  background: linear-gradient(90deg, var(--pm-cream) 0%, rgba(247, 241, 228, 0) 100%);
  pointer-events: none;
}

/* =========================================================
   STORY
========================================================= */
.pm-story {
  padding: 6.5rem 0;
  background: var(--pm-paper);
}

.pm-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.pm-pull {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.35;
  color: var(--pm-green);
  margin: 1.6rem 0 0;
  max-width: 18ch;
}

.pm-story-copy p { max-width: 46ch; margin: 0; }
.pm-story-copy p + p { margin-top: 1.1rem; }

/* =========================================================
   PRODUCT
========================================================= */
.pm-product {
  padding: 4.5rem 0 5rem;
  background: var(--pm-pack);
  border-top: 1px solid rgba(44, 38, 31, 0.06);
  border-bottom: 1px solid rgba(44, 38, 31, 0.06);
}

.pm-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.pm-product-stage {
  display: flex;
  justify-content: center;
}

.pm-pack {
  width: min(440px, 100%);
  height: auto;
  background: transparent;
}

.pm-product-copy .pm-section-heading { margin-bottom: 1rem; }

.pm-product-copy > p { max-width: 42ch; }

.pm-product-points {
  margin: 1.15rem 0 1.6rem;
  color: var(--pm-green-dark);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.pm-product-points span { color: var(--pm-gold); padding: 0 0.35rem; font-weight: 500; }

.pm-order-hint {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  max-width: 36ch;
}

/* =========================================================
   BENEFITS
========================================================= */
.pm-benefits {
  padding: 6.5rem 0;
  background: var(--pm-cream);
}

.pm-benefit-list {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 1.75rem;
}

.pm-benefit-list li {
  padding-top: 1.05rem;
  border-top: 1px solid rgba(180, 129, 58, 0.55);
}

.pm-benefit-list h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--pm-green-dark);
  margin: 0 0 0.55rem;
}

.pm-benefit-list p {
  margin: 0;
  font-size: 0.98rem;
}

/* =========================================================
   ORDER
========================================================= */
.pm-order {
  padding: 6.25rem 0;
  background: var(--pm-green-dark);
}

.pm-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.pm-order .pm-kicker { color: var(--pm-gold-soft); }

.pm-order .pm-section-heading { color: #F8F4EC; }

.pm-steps {
  list-style: none;
  margin: 0 0 1.85rem;
  padding: 0;
  counter-reset: step;
}

.pm-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.35rem 0.85rem;
  margin: 0 0 1.15rem;
  color: rgba(248, 244, 236, 0.88);
}

.pm-steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--pm-gold-soft);
}

.pm-steps strong {
  display: block;
  color: #fff;
  font-weight: 600;
}

.pm-steps span {
  display: block;
  font-size: 0.98rem;
  color: rgba(248, 244, 236, 0.75);
}

/* =========================================================
   NEWSLETTER
========================================================= */
.pm-newsletter {
  padding: 5rem 0;
  background: var(--pm-paper);
}

.pm-newsletter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: end;
}

.pm-newsletter-layout > div p { margin: 0.9rem 0 0; max-width: 36ch; }

.pm-newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 0.75rem;
}

.pm-newsletter-form input {
  min-width: 0;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(22, 60, 44, 0.22);
  border-radius: 6px;
  background: #fff;
  color: var(--pm-ink);
  font-size: 1rem;
}

.pm-form-note {
  grid-column: 1 / -1;
  min-height: 1.4em;
  margin: 0;
  font-size: 0.92rem;
  color: var(--pm-green);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   FOOTER
========================================================= */
.pm-footer {
  background: var(--pm-green-dark);
  color: rgba(248, 244, 236, 0.78);
  padding: 4.5rem 0 0;
}

.pm-footer-brand {
  display: inline-flex;
  background: var(--pm-logo);
  padding: 0.35rem 0.45rem 0.4rem;
  margin-bottom: 1.2rem;
}

.pm-footer .pm-brand-logo { height: 74px; }

.pm-footer-desc {
  max-width: 32ch;
  margin: 0;
  font-size: 0.95rem;
  color: rgba(248, 244, 236, 0.72);
}

.pm-footer h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  color: #fff;
  margin: 0 0 1rem;
}

.pm-footer ul { list-style: none; margin: 0; padding: 0; }
.pm-footer li { margin: 0 0 0.65rem; font-size: 0.95rem; }
.pm-footer li a { color: rgba(248, 244, 236, 0.78); }
.pm-footer li a:hover { color: var(--pm-gold-soft); }

.pm-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.pm-footer-contact i {
  color: var(--pm-gold-soft);
  margin-top: 0.2rem;
}

.pm-footer-bottom {
  margin-top: 3rem;
  padding: 1.3rem 0 1.5rem;
  border-top: 1px solid rgba(248, 244, 236, 0.14);
  text-align: left;
  font-size: 0.85rem;
  color: rgba(248, 244, 236, 0.55);
}

.pm-footer-bottom p { margin: 0; color: inherit; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1199px) {
  .pm-nav-links { gap: 1.15rem; }
  .pm-brand-logo { height: 76px; }
  .pm-navbar-inner { min-height: 84px; }
}

@media (max-width: 991px) {
  .pm-hamburger { display: flex; }

  .pm-brand-logo { height: 64px; }
  .pm-navbar-inner { min-height: 76px; }
  .pm-footer .pm-brand-logo { height: 68px; }

  .pm-nav-links {
    position: fixed;
    top: 76px;
    right: 0;
    z-index: 1001;
    height: calc(100dvh - 76px);
    width: min(84vw, 360px);
    background: var(--pm-paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.35rem;
    padding: 1.5rem 1.75rem 2rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s ease;
    box-shadow: -12px 0 40px -28px rgba(13, 42, 30, 0.45);
  }

  .pm-nav-links.open {
    transform: translateX(0);
    visibility: visible;
  }

  .pm-nav-links .pm-btn-whatsapp {
    width: 100%;
    margin-top: 0.4rem;
  }

  .pm-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .pm-hero-copy,
  .pm-hero-aside {
    max-width: none;
    min-width: 0;
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .pm-hero-copy { padding-top: 1.75rem; padding-bottom: 0; }

  .pm-hero-media {
    order: 2;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1224 / 1285;
    margin-top: 1.35rem;
  }

  .pm-hero-media::after {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 72px;
    background: linear-gradient(180deg, rgba(247, 241, 228, 0), var(--pm-cream));
  }

  .pm-hero-aside { order: 3; padding-top: 1.35rem; padding-bottom: 2.75rem; }

  .pm-story-grid,
  .pm-product-layout,
  .pm-order-layout,
  .pm-newsletter-layout,
  .pm-benefit-list {
    grid-template-columns: 1fr 1fr;
  }

  .pm-story,
  .pm-benefits,
  .pm-order { padding: 4.5rem 0; }

  .pm-product { padding: 3rem 0 3.75rem; }
}

@media (max-width: 767px) {
  .pm-hero h1 { font-size: clamp(2rem, 10vw, 2.65rem); }

  .pm-story-grid,
  .pm-product-layout,
  .pm-order-layout,
  .pm-newsletter-layout,
  .pm-benefit-list {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .pm-benefit-list { margin-top: 2rem; gap: 1.35rem; }

  .pm-pack { width: min(380px, 88vw); }

  .pm-product-copy { padding-bottom: 0.5rem; }

  .pm-newsletter-form { grid-template-columns: 1fr; }

  .pm-newsletter-form .pm-btn { width: 100%; }

  .pm-hero-ctas .pm-btn-whatsapp,
  .pm-product-copy .pm-btn-whatsapp,
  .pm-order .pm-btn-whatsapp {
    width: 100%;
  }

  .pm-section-heading { max-width: none; }
  .pm-pull { max-width: none; }

  .pm-footer { padding-top: 3.25rem; }
}

@media (max-width: 380px) {
  .pm-brand-logo { height: 56px; }
  .pm-navbar-inner { min-height: 68px; }
  .pm-nav-links {
    top: 68px;
    height: calc(100dvh - 68px);
  }
}
