/* =====================================================================
   JPB Opportunity — landing page styles
   ---------------------------------------------------------------------
   EASY EDITS live in the :root block right below. Change colors,
   the hero background image, or spacing here without touching
   anything further down the file.
   ===================================================================== */

:root {
  /* ---- palette (sakura / rose) ---- */
  --cream:        #FFF8F5;
  --blush:        #FFE3EC;
  --rose:         #FBBBD0;
  --rose-mid:     #F386A8;
  --rose-deep:    #E85D8A;
  --magenta:      #C33E71;
  --gold:         #E8B84B;
  --ink:          #3A2430;
  --ink-soft:     #7A5866;
  --white:        #FFFFFF;
  --whatsapp:     #25D366;
  --whatsapp-dark:#1EBE5A;

  /* ---- type ---- */
  --font-body:    'Cairo', system-ui, sans-serif;
  --font-display: 'Aref Ruqaa', 'Cairo', serif;

  /* ---- shape / motion ---- */
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-full: 999px;
  --shadow-soft: 0 10px 30px rgba(200, 60, 110, 0.14);
  --shadow-strong: 0 14px 34px rgba(195, 62, 113, 0.28);

  /* -------------------------------------------------------------
     EDIT ME: hero background photo.
     Drop your image at assets/hero-background.jpg and it will
     appear automatically. Nothing else needs to change.
     If the file is missing, the gradient fallback below is used.
     ------------------------------------------------------------- */
  --hero-image: url('../assets/hero-background.jpg');
}

/* ---------------------------------------------------------------
   Reset / base
   --------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--cream) 0%, var(--blush) 100%);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 6px;
}

.page {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 40px;
}

/* ---------------------------------------------------------------
   Sakura petals — ambient background animation (signature element)
   Petals are injected by js/script.js; this defines how they move.
   --------------------------------------------------------------- */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -40px;
  will-change: transform, opacity;
  opacity: 0.85;
  animation-name: petal-fall, petal-sway;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
}

.petal svg { display: block; }

@keyframes petal-fall {
  0%   { transform: translateY(-10vh) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(360deg); }
}

@keyframes petal-sway {
  0%, 100% { margin-inline-start: 0px; }
  50%      { margin-inline-start: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .petal { animation: none; opacity: 0.5; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px 6px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
}

.brand-crown {
  color: var(--gold);
  font-size: 18px;
  margin-left: 2px;
}

.brand-name {
  font-weight: 700;
  font-size: 22px;
  color: var(--magenta);
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 13px;
  color: var(--ink-soft);
  font-family: var(--font-body);
}

.header-badge {
  font-size: 11px;
  color: var(--magenta);
  background: var(--white);
  border: 1px solid var(--rose);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-badge .heart { color: var(--rose-deep); }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 2;
  margin: 14px 16px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 20%;
  background-color: var(--rose);
  /* fallback gradient shows through if no image file exists */
  background-image:
    var(--hero-image),
    linear-gradient(150deg, var(--blush) 0%, var(--rose) 55%, var(--rose-mid) 100%);
  background-blend-mode: normal, normal;
  z-index: -2;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(255, 248, 245, 0.55) 0%,
      rgba(255, 248, 245, 0.78) 42%,
      rgba(255, 248, 245, 0.96) 68%,
      var(--cream) 88%);
  z-index: -1;
}

.hero-content {
  position: relative;
  padding: 34px 22px 26px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--magenta);
  font-weight: 700;
  font-size: 13px;
  margin: 0 0 10px;
}

.spark { color: var(--gold); }

.headline {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--ink);
}

.headline-accent {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--rose-deep);
  font-size: 40px;
}

.heart-outline { color: var(--rose-deep); font-size: 26px; }

.subhead {
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 46ch;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pillars li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 13px 15px;
}

.pillar-icon {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-size: 30px;
  line-height: 54px;
  text-align: center;
  overflow: hidden;
}

.pillars strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
}

.pillars span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.pillars span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.imoji {
  display: block;
  font-size: 20px;
  color: var(--ink-soft);
}

.ribbon {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  background: var(--rose-deep);
  color: var(--white);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  text-align: center;
  box-shadow: var(--shadow-strong);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.ribbon strong { font-size: 13px; }

/* ---------------------------------------------------------------
   Invite + CTA
   --------------------------------------------------------------- */
.invite {
  position: relative;
  z-index: 2;
  margin: 26px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.invite-card {
  background: var(--white);
  border: 1px solid var(--rose);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

.invite-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
}

.invite-arrow {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  color: var(--rose-deep);
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

.cta-button {
  margin-top: 18px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--whatsapp) 0%, var(--whatsapp-dark) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  padding: 17px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.38);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(37, 211, 102, 0.46);
}

.cta-button:active { transform: translateY(0); }

.wa-icon { width: 22px; height: 22px; }

.micro-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------
   Trust strip
   --------------------------------------------------------------- */
.trust {
  position: relative;
  z-index: 2;
  margin: 30px 16px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.trust-item {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  text-align: center;
}

.trust-item span { font-size: 18px; display: block; margin-bottom: 4px; }

.trust-item p {
  margin: 0;
  font-size: 10.5px;
  color: var(--ink-soft);
  line-height: 1.3;
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 26px;
  color: var(--magenta);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------------------------------------------------------------
   Sticky mobile CTA (appears on scroll via JS toggling .visible)
   --------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 120%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--whatsapp) 0%, var(--whatsapp-dark) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.28s ease;
  width: max-content;
}

.sticky-cta.visible {
  transform: translate(-50%, 0);
}

.sticky-cta .wa-icon { width: 18px; height: 18px; }

/* ---------------------------------------------------------------
   Small-phone tightening
   --------------------------------------------------------------- */
@media (max-width: 360px) {
  .headline { font-size: 29px; }
  .headline-accent { font-size: 33px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------
   Larger screens — keep the mobile-card feel, just add breathing room
   --------------------------------------------------------------- */
@media (min-width: 640px) {
  body {
    background: linear-gradient(180deg, var(--cream) 0%, var(--blush) 60%, var(--rose) 100%);
  }
  .page {
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 32px;
    box-shadow: 0 30px 70px rgba(195, 62, 113, 0.18);
    background: var(--cream);
    padding-bottom: 44px;
  }
  .hero-content { padding: 44px 34px 32px; }
  .headline { font-size: 40px; }
  .headline-accent { font-size: 46px; }
}
