/* ==========================================================================
   Landing Page Botanica — Custom Styles
   Complements Tailwind CDN. All botanical-specific overrides live here.
   ========================================================================== */

/* ── Base ── */
html {
  scroll-behavior: smooth;
}

/* Offset anchor scrolls so the fixed desktop nav doesn't cover section headings */
@media (min-width: 768px) {
  html {
    scroll-padding-top: 100px;
  }
}

/* ── Material Symbols ── */
.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  display: inline-block;
  vertical-align: middle;
}

/* ── Buttons ── */
.btn-primary {
  background-color: #2d4739;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover {
  background-color: #173124;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(45, 71, 57, 0.4);
}

/* ── Utilities ── */
.price-strike {
  position: relative;
  text-decoration: none !important;
}
.price-strike::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 2px;
  background: rgba(23, 49, 36, 0.5);
  transform: rotate(-12deg);
  border-radius: 1px;
}

.botanical-shadow {
  box-shadow: 0 20px 40px -15px rgba(23, 49, 36, 0.08);
}

/* ── Form: visible green borders, dark text ── */

/* Card containers */
.lp-discount-card {
  border: 2px solid #4a654e !important;
}
#final-cta-form {
  background: #fff;
  border: 2px solid #4a654e;
  border-radius: 20px;
  padding: 28px 24px;
}

/* Inputs */
.lp-discount-input,
#final-cta-phone,
#final-cta-address {
  border: 2px solid #4a654e !important;
  border-radius: 14px !important;
  color: #173124 !important;
}
.lp-discount-input::placeholder,
#final-cta-phone::placeholder,
#final-cta-address::placeholder {
  color: #424844 !important;
  opacity: 1 !important;
}
.lp-discount-input:focus,
#final-cta-phone:focus,
#final-cta-address:focus {
  border-color: #2d4739 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(74, 101, 78, 0.18) !important;
}

/* Labels */
.lp-discount-label {
  color: #173124 !important;
  font-weight: 700 !important;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── Swiper base overrides ── */
.swiper {
  width: 100%;
  overflow: hidden;
}
.swiper-wrapper {
  align-items: stretch;
}
.swiper-slide {
  height: auto;
}

.swiper-pagination-bullet {
  background: #c2c8c2;
  opacity: 1;
}
.swiper-pagination-bullet-active {
  background: #4a654e;
}

/* ── Product & Review carousels ── */
.lp-product-swiper,
.lp-review-swiper {
  cursor: grab;
}
.lp-product-swiper:active,
.lp-review-swiper:active {
  cursor: grabbing;
}

.lp-product-slide,
.lp-review-slide,
.lp-product-card,
.lp-review-card {
  height: 100%;
}

/* ── Hero savings badge (overlay on image) ── */
.lp-savings-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(198, 123, 88, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* ── Hero product pill ── */

.lp-hero-pill {
  position: absolute;
  right: -30px;
  top: 0px;
  transform: translateY(-50%);
  background: #2d4739;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 30;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  user-select: none;
}

/* ── Hero inner clip (wraps swiper, clips image to rounded corners) ── */
.hero-image-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* ── Hero image slider ── */
.lp-hero-swiper {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.lp-hero-swiper .swiper-slide {
  height: 100%;
}
.lp-hero-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lp-hero-pagination {
  bottom: 14px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
}
.lp-hero-pagination .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
  margin: 0 3px;
  transition: all 0.3s;
}
.lp-hero-pagination .swiper-pagination-bullet-active {
  background: #fff;
  width: 20px;
  border-radius: 3px;
}

.lp-hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 34px;
  height: 34px;
  background: rgba(250, 249, 246, 0.75);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #173124;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.lp-hero-btn:hover {
  background: rgba(250, 249, 246, 0.95);
  transform: translateY(-50%) scale(1.08);
}
.lp-hero-prev {
  left: 10px;
}
.lp-hero-next {
  right: 10px;
}

/* ── Hero urgency bar ── */
.hero-urgency-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #f0ede6;
  border-bottom: 1px solid rgba(23, 49, 36, 0.1);
  padding: 10px 16px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7a70;
}
.hero-urgency-icon {
  font-size: 14px !important;
  color: #C67B58;
}
.hero-urgency-accent {
  color: #C67B58;
  font-weight: 800;
}

/* ── Hero benefit strip ── */
.hero-benefit-strip {
  display: flex;
  align-items: stretch;
  background: #173124;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 1.5rem;
}
.hero-benefit-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 14px 8px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.2;
}
.hero-benefit-item:last-child {
  border-right: none;
}
.hero-benefit-item .material-symbols-outlined {
  color: #C67B58;
  display: block;
}

/* ── Hero mobile CTA section ── */
.hero-mobile-cta {
  padding: 1.5rem 1.25rem 0.5rem;
  text-align: center;
}
.hero-mobile-cta-btn {
  font-size: 1rem !important;
  letter-spacing: 0.01em;
}
.hero-mobile-trust {
  margin-top: 0.75rem;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(23, 49, 36, 0.45);
}

/* ── Hero mobile: image below text, full-bleed portrait ── */
@media (max-width: 767px) {
  /* Section: no top padding (urgency bar handles it) */
  #hero {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
  }

  /* Grid: single column, zero horizontal padding (image goes edge-to-edge) */
  #hero .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Text copy: compact, centered */
  .hero-copy {
    padding: 1.25rem 1.25rem 0.5rem !important;
    text-align: center;
    overflow: visible !important;
  }
  .hero-copy > span:first-child {
    display: inline-block;
    width: auto;
    margin-bottom: 0.75rem !important;
  }
  /* Headline: compact on mobile, ~26px on a 390px phone */
  .hero-copy h1 {
    font-size: clamp(1.4rem, 6vw, 1.75rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 0.5rem !important;
  }
  .hero-copy > p {
    margin-bottom: 1rem !important;
    font-size: 0.9rem !important;
    overflow: visible !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    white-space: normal !important;
    height: auto !important;
    max-height: none !important;
  }

  /* Image wrapper: full bleed */
  .hero-image-wrap {
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  /* Image card: tall portrait, no rounding, no tilt */
  .hero-image-card {
    aspect-ratio: 4 / 5 !important;
    border-radius: 0 !important;
    transform: none !important;
    box-shadow: none !important;
  }

  /* Gradient overlay — on the inner clip so it respects rounded corners */
  .hero-image-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 28, 20, 0.55) 100%);
    pointer-events: none;
    z-index: 2;
  }

  /* Treatment pill: bottom-left, above pagination dots */
  .lp-hero-pill {
    left: 12px !important;
    right: auto !important;
    bottom: 52px !important;
    top: auto !important;
    transform: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.07em !important;
    padding: 9px 16px !important;
    background: rgba(23, 49, 36, 0.82) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 999px !important;
    max-width: calc(60% - 24px) !important;
    white-space: nowrap !important;
    text-align: center !important;
    line-height: 1 !important;
  }

  /* Discount pill: top-right, prominent */
  .lp-savings-badge {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    left: auto !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    padding: 10px 20px !important;
    border-radius: 999px !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    line-height: 1 !important;
  }
}

/* ── Feature carousel nav buttons ── */
.lp-feat-btn {
  position: absolute;
  top: calc(50% - 28px); /* compensate for pb-14 pagination area */
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid rgba(23, 49, 36, 0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #173124;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(23, 49, 36, 0.10);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.lp-feat-btn:hover {
  background: #f4f3f1;
  box-shadow: 0 6px 18px rgba(23, 49, 36, 0.14);
  transform: translateY(-50%) scale(1.07);
}
.lp-feat-prev { left: -20px; }
.lp-feat-next { right: -20px; }

.lp-feature-pagination {
  bottom: 0 !important;
  position: static !important;
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* ── Scroll-reveal ── */
.lp-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.lp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Honeypot spam protection ── */
.lp-hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* ── Hamburger animation ── */
.lp-hamburger {
  width: 22px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.lp-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
}
.lp-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.lp-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.lp-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Side Drawer ── */
.lp-drawer-overlay {
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lp-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lp-drawer {
  transform: translateX(105%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.14);
}
.lp-drawer.is-open {
  transform: translateX(0);
}

@media (min-width: 768px) {
  #lp-drawer,
  #lp-drawer-overlay {
    display: none !important;
  }
}

/* ── Popup ── */
.lp-popup-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lp-popup-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lp-popup-card {
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}
.lp-popup-overlay.is-open .lp-popup-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── Preloader ── */
#lp-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #faf9f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition:
    opacity 0.55s ease,
    visibility 0.55s ease;
}
#lp-preloader.lp-preloader-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lp-preloader-leaf {
  width: 56px;
  height: 56px;
  animation: lp-leaf-spin 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes lp-leaf-spin {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: rotate(180deg) scale(1.12);
    opacity: 1;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 0.9;
  }
}

.lp-preloader-bar {
  width: 120px;
  height: 2px;
  background: #e3e2e0;
  border-radius: 2px;
  overflow: hidden;
}
.lp-preloader-bar-fill {
  height: 100%;
  width: 0;
  background: #173124;
  border-radius: 2px;
  animation: lp-bar-fill 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes lp-bar-fill {
  0% {
    width: 0%;
    opacity: 1;
  }
  70% {
    width: 100%;
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 0;
  }
}

.lp-preloader-brand {
  font-family: "Playfair Display", serif;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.05em;
  color: #173124;
  opacity: 0.55;
}

/* ── Mobile overrides (≤767px) ── */
@media (max-width: 767px) {
  body {
    padding-bottom: 88px;
  }

  #hero {
    background: #f4f3f1;
    padding-bottom: 64px;
  }
  #hero .hero-copy {
    text-align: center;
    max-width: 32rem;
    margin-inline: auto;
  }
  #hero .hero-price {
    align-items: center;
  }
  #hero .hero-image-card {
    border-radius: 40px;
    transform: none;
  }

  .feature-card {
    align-items: flex-start;
    text-align: left;
    border: 1px solid rgba(227, 226, 224, 0.95);
    box-shadow: 0 6px 18px rgba(23, 49, 36, 0.04);
  }
  .feature-card .feature-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    margin-bottom: 24px;
    color: #4a654e;
  }
  .feature-card .feature-icon .material-symbols-outlined {
    font-size: 40px;
  }

  #discount-form {
    border-radius: 48px 48px 0 0;
  }
  .lp-discount-card {
    padding: 28px 24px !important;
    border-radius: 22px !important;
  }
  .lp-discount-heading {
    font-size: 34px !important;
    line-height: 1.12 !important;
    margin-bottom: 14px !important;
  }
  .lp-discount-subtext {
    font-size: 17px !important;
    line-height: 1.55 !important;
  }
  .lp-discount-intro {
    margin-bottom: 28px !important;
  }
  .lp-discount-form {
    gap: 18px !important;
  }
  .lp-discount-grid {
    gap: 18px !important;
  }
  .lp-discount-label {
    font-size: 13px !important;
  }
  .lp-discount-input {
    padding: 14px 18px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
  }
  .lp-discount-submit {
    width: 100% !important;
    padding: 15px 18px !important;
    border-radius: 16px !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
  }
  .lp-discount-submit svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .lp-product-swiper,
  .lp-review-swiper {
    overflow: visible;
  }
  .lp-product-pagination,
  .lp-review-pagination {
    margin-top: 32px;
    position: static;
  }

  .lp-popup-card {
    border-radius: 20px;
  }

  .lp-floating-actions {
    right: 16px;
    gap: 10px;
  }
  .lp-floating-action {
    width: 44px !important;
    height: 44px !important;
  }
  .lp-floating-action-whatsapp {
    width: 50px !important;
    height: 50px !important;
  }
  .lp-floating-action svg {
    width: 24px;
    height: 24px;
  }
}

/* ── Desktop review card (≥768px) ── */
@media (min-width: 768px) {
  .lp-review-card {
    min-height: 360px;
    height: 100%;
    padding: 32px 24px !important;
    flex-direction: column !important;
    justify-content: center;
    text-align: center !important;
    gap: 20px !important;
  }
  .lp-review-card .lp-review-avatar {
    order: 1;
    width: 88px !important;
    height: 88px !important;
    margin-inline: auto;
  }
  .lp-review-card .lp-review-body {
    order: 2;
    width: 100%;
    flex: none !important;
  }
  .lp-review-card .lp-review-stars {
    justify-content: center !important;
  }
  .lp-review-card .lp-review-text {
    font-size: 18px;
    line-height: 1.45;
    margin-bottom: 20px;
  }
  .lp-review-card .lp-review-author {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .lp-reveal {
    opacity: 1;
    transform: none;
  }
}
