/* ===========================================================
   Pragya Nursery v2 — additive design system
   Loaded AFTER style.css. Overrides only; never duplicates.
   Emergency rollback: remove the <link> tag in index.html.
   =========================================================== */

:root {
  --p-green-900: #1a3a2a;
  --p-green-700: #2d5f3f;
  --p-green-500: #4a8763;
  --p-green-300: #a3c9b3;
  --p-green-100: #e8f3ec;
  --p-cream-50:  #faf8f3;
  --p-cream-100: #f3eee2;
  --p-clay-500:  #c97c5d;
  --p-ink-900:   #1a1d1a;
  --p-ink-600:   #5a615a;
  --p-line:      #e0dccd;
  --p-r-sm: 8px;
  --p-r-md: 14px;
  --p-r-lg: 22px;
  --p-shadow-card:  0 6px 24px -8px rgba(26,29,26,0.12), 0 2px 4px rgba(26,29,26,0.04);
  --p-shadow-hover: 0 16px 40px -12px rgba(26,29,26,0.18), 0 4px 8px rgba(26,29,26,0.08);
  --p-s-1: 4px; --p-s-2: 8px; --p-s-3: 12px; --p-s-4: 16px;
  --p-s-5: 24px; --p-s-6: 32px; --p-s-7: 48px; --p-s-8: 64px; --p-s-9: 96px;
}

/* ============ HERO — lifestyle, full-bleed ============ */
.hero {
  position: relative;
  min-height: 88vh;
  background:
    linear-gradient(115deg, rgba(15,35,22,0.82) 0%, rgba(20,45,30,0.62) 45%, rgba(15,35,22,0.88) 100%),
    url('/images/plants/fiddle-leaf-fig.jpg') center/cover no-repeat;
  display: flex; align-items: center;
  padding: var(--p-s-7) 0;
}
.hero__bg { display: none; }
.hero .container { position: relative; z-index: 2; }
.hero__content { color: #fff; max-width: 760px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; padding: 7px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.28);
}
.hero__title {
  font-family: 'Lora', serif; font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1.05;
  margin: var(--p-s-5) 0 var(--p-s-4); color: #fff;
}
.hero__highlight { color: var(--p-green-300); font-style: italic; }
.hero__subtitle {
  font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.55;
  color: rgba(255,255,255,0.92); max-width: 540px;
  margin-bottom: var(--p-s-6);
}
.hero__actions { display: flex; gap: var(--p-s-3); flex-wrap: wrap; }
.hero__actions .btn {
  padding: 14px 28px; font-size: 15px; font-weight: 600;
  border-radius: var(--p-r-sm); border: 1.5px solid transparent;
}
.hero__actions .btn--primary { background: #fff; color: var(--p-green-900); }
.hero__actions .btn--primary:hover { background: var(--p-green-300); color: var(--p-green-900); }
.hero__actions .btn--outline {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.6);
}
.hero__actions .btn--outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.hero__location-prompt { margin-top: var(--p-s-6); }
.hero__location-prompt .btn--location {
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1px solid rgba(255,255,255,0.32);
  font-size: 14px; padding: 10px 20px; border-radius: var(--p-r-sm);
}
.hero__location-prompt .btn--location:hover { background: rgba(255,255,255,0.25); }
.hero__location-status { color: rgba(255,255,255,0.88); font-size: 13px; margin-top: 8px; }
.hero__stats {
  display: flex; gap: var(--p-s-7); margin-top: var(--p-s-6);
  padding-top: var(--p-s-5); border-top: 1px solid rgba(255,255,255,0.22);
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat-num {
  font-family: 'Lora', serif; font-size: 2rem; font-weight: 700;
  color: var(--p-green-300); line-height: 1;
}
.hero__stat-label {
  font-size: 11px; opacity: 0.85; letter-spacing: 0.08em;
  text-transform: uppercase; margin-top: 4px;
}

/* ============ TRUST STRIP ============ */
.trust-strip {
  background: var(--p-cream-100);
  padding: var(--p-s-6) 0;
  border-bottom: 1px solid var(--p-line);
}
.trust-strip__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--p-s-5);
  text-align: center;
}
.trust-strip__item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.trust-strip__icon { font-size: 28px; line-height: 1; }
.trust-strip__label { font-weight: 600; font-size: 14px; color: var(--p-ink-900); }
.trust-strip__sublabel { font-size: 12px; color: var(--p-ink-600); line-height: 1.4; }
@media (max-width: 700px) {
  .trust-strip__grid { grid-template-columns: repeat(2, 1fr); gap: var(--p-s-5); }
}

/* ============ SHOP BY SPACE ============ */
.shop-by-space { padding: var(--p-s-9) 0; background: var(--p-cream-50); }
.shop-by-space .section-header { margin-bottom: var(--p-s-7); }
.shop-by-space__grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--p-s-4);
}
.space-tile {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--p-r-md); cursor: pointer;
  background: var(--p-green-100); border: none; padding: 0;
  box-shadow: var(--p-shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
  font-family: inherit;
}
.space-tile:hover { transform: translateY(-4px); box-shadow: var(--p-shadow-hover); }
.space-tile__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.space-tile:hover .space-tile__img { transform: scale(1.06); }
.space-tile__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,29,26,0.85) 0%, rgba(26,29,26,0.1) 60%);
}
.space-tile__label {
  position: absolute; left: 0; right: 0; bottom: var(--p-s-4);
  text-align: center; color: #fff;
  font-family: 'Lora', serif; font-weight: 600; font-size: 18px;
  padding: 0 var(--p-s-3);
}
@media (max-width: 900px) {
  .shop-by-space__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ TESTIMONIALS ============ */
.testimonials { padding: var(--p-s-9) 0; background: var(--p-green-900); color: #fff; }
.testimonials .section-title { color: #fff; }
.testimonials .section-subtitle { color: var(--p-green-300); }
.testimonials__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--p-s-5);
  margin-top: var(--p-s-7);
}
.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--p-r-md);
  padding: var(--p-s-6);
  display: flex; flex-direction: column; gap: var(--p-s-4);
}
.testimonial-card__stars { color: #f5b800; letter-spacing: 2px; font-size: 14px; }
.testimonial-card__text {
  font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.92);
  flex: 1; font-style: italic;
}
.testimonial-card__author { display: flex; flex-direction: column; gap: 2px; }
.testimonial-card__name { font-weight: 600; color: #fff; font-size: 14px; }
.testimonial-card__loc { font-size: 12px; color: var(--p-green-300); }
@media (max-width: 900px) {
  .testimonials__grid { grid-template-columns: 1fr; }
}

/* ============ JOURNAL TEASER ============ */
.journal { padding: var(--p-s-9) 0; background: var(--p-cream-50); }
.journal__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--p-s-5);
  margin-top: var(--p-s-7);
}
.journal-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border-radius: var(--p-r-md); overflow: hidden;
  box-shadow: var(--p-shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
}
.journal-card:hover { transform: translateY(-4px); box-shadow: var(--p-shadow-hover); }
.journal-card__img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
}
.journal-card__body { padding: var(--p-s-5); }
.journal-card__tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--p-clay-500); font-weight: 600;
  margin-bottom: var(--p-s-2);
}
.journal-card__title {
  font-family: 'Lora', serif; font-weight: 600;
  font-size: 19px; line-height: 1.3; color: var(--p-ink-900);
  margin-bottom: var(--p-s-2);
}
.journal-card__desc { font-size: 14px; color: var(--p-ink-600); line-height: 1.5; }
.journal-card__read {
  display: inline-block; margin-top: var(--p-s-3);
  font-size: 13px; font-weight: 600; color: var(--p-green-700);
}
.journal-card__read::after { content: ' →'; }
@media (max-width: 900px) {
  .journal__grid { grid-template-columns: 1fr; }
}

/* ============ SECTION HEADERS — unified for new sections ============ */
.shop-by-space .section-title,
.testimonials .section-title,
.journal .section-title {
  font-family: 'Lora', serif; font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15;
}

/* ============ ACTIVE-ORDER BANNER (persistent, shows when in-flight order exists) ============ */
.active-order-banner {
  width: 100%;
  display: none;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #1a3a2a 0%, #2d5f3f 100%);
  color: #fff;
  padding: 10px 16px;
  border: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.active-order-banner__pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ffd54f;
  box-shadow: 0 0 0 0 rgba(255,213,79,0.6);
  animation: pragyaPulse 1.6s infinite;
  flex: 0 0 auto;
}
@keyframes pragyaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,213,79,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(255,213,79,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,213,79,0); }
}
.active-order-banner__text { flex: 1; }
.active-order-banner__chevron { opacity: 0.7; font-size: 20px; }

/* ============ CHECKOUT ERROR (inline, replaces useless native "System Error" alerts) ============ */
.checkout-error {
  background: #fdeded;
  border: 1px solid #f5c6c6;
  color: #8a2922;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
}
.checkout-error__text { margin: 0 0 10px; font-weight: 500; }
.checkout-error__actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.checkout-error__actions .btn {
  font-size: 12px; padding: 8px 14px;
  flex: 1; min-width: 130px;
  border-radius: 8px;
}

/* ============ DELIVERY-STATUS PILL inside cart ============ */
.delivery-status {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  margin: 6px 0 10px;
  border: 1px solid var(--p-line);
  background: var(--p-cream-50);
  color: var(--p-ink-900);
}
.delivery-status__dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex: 0 0 auto;
  background: #9aa49d;
}
.delivery-status--detecting .delivery-status__dot { background: #f5b800; animation: pragyaPulse 1.6s infinite; }
.delivery-status--ok        { background: #ebf6ee; border-color: #b9d8c1; }
.delivery-status--ok        .delivery-status__dot { background: #2c7a4a; }
.delivery-status--bad       { background: #fdeded; border-color: #f5c6c6; color: #8a2922; }
.delivery-status--bad       .delivery-status__dot { background: #c8362b; }

/* ============ POST-PAYMENT TRACKING PANE inside cart ============ */
.cart-tracking-pane {
  flex-direction: column;
  gap: 14px;
  padding: 20px 18px;
  overflow-y: auto;
  flex: 1;
}
.cart-tracking-pane__header {
  display: flex; align-items: center; gap: 12px;
}
.cart-tracking-pane__icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--p-green-700); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(45,95,63,0.35);
}
.cart-tracking-pane__title {
  font-family: 'Lora', serif; font-weight: 600; font-size: 20px;
  margin: 0; color: var(--p-ink-900);
}
.cart-tracking-pane__sub {
  margin: 2px 0 0; font-size: 13px; color: var(--p-ink-600);
}
.cart-tracking-pane__meta {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  background: var(--p-cream-50);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--p-line);
}
.cart-tracking-pane__meta > div { display: flex; flex-direction: column; gap: 2px; }
.cart-tracking-pane__label {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--p-ink-600); font-weight: 600;
}
.cart-tracking-pane__value {
  font-family: 'Lora', serif; font-weight: 700; font-size: 14px; color: var(--p-ink-900);
}
.cart-tracking-pane__timeline {
  padding: 4px 0;
}
.cart-tracking-pane__whatsapp { margin-top: 4px; }
.cart-tracking-pane__done { margin-top: 0; }

@media (max-width: 500px) {
  .cart-tracking-pane__meta { grid-template-columns: 1fr; }
}

/* ============ PROMO BAR (top of page, non-sticky) ============ */
.promo-bar {
  background: var(--p-green-900); color: #fff;
  padding: 9px 0; font-size: 13px;
  letter-spacing: 0.02em; text-align: center;
}
.promo-bar__icon { margin-right: 6px; }
@media (max-width: 600px) {
  .promo-bar { font-size: 12px; padding: 8px 12px; }
}

/* ============ CATALOG SECTION ============ */
.catalog { background: var(--p-cream-50); padding: var(--p-s-9) 0; }
.catalog .section-title {
  font-family: 'Lora', serif; font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15;
}
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--p-s-5);
}

/* ============ NAV — tighter spacing for 6 links ============ */
@media (min-width: 901px) {
  .nav { gap: 1.4rem; }
  .nav__link { font-size: 14px; white-space: nowrap; }
}

/* ============ PLANT CARD ============ */
.plant-card {
  background: #fff;
  border-radius: var(--p-r-md);
  overflow: hidden;
  box-shadow: var(--p-shadow-card);
  border: 1px solid var(--p-line);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.plant-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--p-shadow-hover);
}
.plant-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--p-green-100);
}
.plant-card__img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.plant-card:hover .plant-card__img { transform: scale(1.05); }
.plant-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.95); color: var(--p-green-900);
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.02em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.plant-card__body {
  padding: var(--p-s-4) var(--p-s-4) var(--p-s-5);
  display: flex; flex-direction: column; gap: var(--p-s-2);
  flex: 1;
}
.plant-card__name {
  font-family: 'Lora', serif; font-weight: 600;
  font-size: 18px; line-height: 1.25; color: var(--p-ink-900);
  margin: 0;
}
.plant-card__category {
  font-size: 12px; color: var(--p-ink-600);
  margin: 0 0 auto;
}
.plant-card__footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--p-s-3); margin-top: var(--p-s-2);
  flex-wrap: wrap; /* defensive: if 4-digit prices ever overflow on desktop, actions wraps below instead of clipping the + button */
}
.plant-card__price {
  font-family: 'Lora', serif; font-weight: 700;
  font-size: 22px; color: var(--p-green-900);
  line-height: 1;
}
.plant-card__price span {
  font-size: 14px; opacity: 0.7; margin-right: 1px;
}
.plant-card__actions {
  display: inline-flex; align-items: center;
  background: var(--p-green-100);
  border-radius: 999px;
  padding: 4px;
}
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: #fff;
  color: var(--p-green-900);
  font-size: 16px; font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: background .2s, color .2s, transform .15s;
}
.qty-btn:hover { background: var(--p-green-700); color: #fff; }
.qty-btn:active { transform: scale(0.92); }
.qty-display {
  min-width: 28px; text-align: center;
  font-weight: 600; font-size: 14px; color: var(--p-ink-900);
}

/* ============ PLANT CARD — ABOUT section ============ */
.plant-card__about {
  margin-top: var(--p-s-2);
  border-top: 1px dashed var(--p-line);
  padding-top: var(--p-s-3);
}
.plant-card__about-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  background: transparent; border: none; padding: 0;
  font: inherit; cursor: pointer;
  color: var(--p-green-700); font-weight: 600; font-size: 13px;
  letter-spacing: 0.01em;
}
.plant-card__about-toggle:hover { color: var(--p-green-900); }
.plant-card__about-toggle .about-toggle-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--p-green-100); color: var(--p-green-700);
  font-size: 16px; font-weight: 700; line-height: 1;
}
.plant-card__about-content {
  margin-top: var(--p-s-3);
  padding: var(--p-s-3); border-radius: var(--p-r-sm);
  background: var(--p-cream-50);
}
.plant-card__about-bullets {
  margin: 0 0 var(--p-s-3); padding-left: 18px;
  font-size: 13px; line-height: 1.55; color: var(--p-ink-600);
}
.plant-card__about-bullets li { margin: 2px 0; }
.plant-card__care {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: var(--p-s-2);
  border-top: 1px solid var(--p-line);
}
.plant-card__care-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--p-ink-900);
}

/* ============ CATEGORY CARDS (existing) — soft polish ============ */
.category-card {
  border-radius: var(--p-r-md);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--p-shadow-hover); }
.category-card.active { box-shadow: var(--p-shadow-hover); }
.category-card__thumb img { transition: transform .4s ease; }
.category-card:hover .category-card__thumb img { transform: scale(1.05); }

/* ============ MOBILE POLISH (combined breakpoints) ============ */
@media (max-width: 700px) {
  .hero { min-height: 70vh; padding: var(--p-s-6) 0; }
  .hero__stats { gap: var(--p-s-5); flex-wrap: wrap; padding-top: var(--p-s-4); margin-top: var(--p-s-5); }
  .hero__stat-num { font-size: 1.65rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .hero__location-prompt .btn--location { width: 100%; }
  .shop-by-space, .testimonials, .journal, .catalog { padding: var(--p-s-7) 0; }
  .shop-by-space__grid .space-tile:nth-child(5) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

  /* Catalog: force 3 columns on phones so the grid is browsable, not endlessly scrolling. */
  .catalog__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--p-s-3);
  }
  .plant-card__img-wrap { aspect-ratio: 1 / 1; }
  .plant-card__body { padding: 10px 10px 12px; gap: 5px; }
  .plant-card__name { font-size: 13px; line-height: 1.2; }
  .plant-card__category { font-size: 10px; }
  .plant-card__price { font-size: 16px; }
  .plant-card__price span { font-size: 10px; }
  .plant-card__badge { font-size: 9px; padding: 3px 7px; top: 6px; left: 6px; letter-spacing: 0; }
  /* Stack price above actions on phones — guarantees the + button is never clipped, regardless of price digit count (₹39 to ₹2999+). */
  .plant-card__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .plant-card__price { text-align: left; }
  .qty-btn { width: 24px; height: 24px; font-size: 14px; }
  .qty-display { min-width: 22px; font-size: 12px; }
  .plant-card__actions {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    padding: 3px;
    justify-content: space-between;
    align-items: center;
  }
  .plant-card__about { padding-top: 6px; }
  .plant-card__about-toggle { font-size: 11px; }
  .plant-card__about-toggle .about-toggle-icon { width: 18px; height: 18px; font-size: 13px; }
  .plant-card__about-content { padding: 10px; }
  .plant-card__about-bullets { font-size: 11px; line-height: 1.5; padding-left: 14px; }
  .plant-card__care-row { font-size: 10px; }
}

/* Very small phones (<380px): drop to 2 columns so cards remain tappable. */
@media (max-width: 380px) {
  .catalog__grid { grid-template-columns: repeat(2, 1fr); }
  .plant-card__name { font-size: 14px; }
  .plant-card__price { font-size: 17px; }
  .qty-btn { width: 26px; height: 26px; font-size: 15px; }
}

@media (max-width: 480px) {
  .promo-bar { font-size: 11.5px; padding: 7px 10px; line-height: 1.4; }
  .testimonial-card, .journal-card .journal-card__body { padding: var(--p-s-5); }
  .hero__badge { font-size: 12px; padding: 6px 12px; }
}

/* ============ FLORA CHAT ============ */
/* Stacked above the WhatsApp floating button (60×60 at bottom:24px right:24px, z:999). */
.flora-fab {
  position: fixed;
  bottom: 96px;   /* 24 (whatsapp bottom) + 60 (whatsapp height) + 12 gap */
  right: 24px;
  z-index: 999;
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  background: linear-gradient(135deg, #ffe88e 0%, #ffc93c 60%, #f59e0b 100%);
  color: #5c3a09;
  border: none; border-radius: 50%;
  box-shadow: 0 12px 28px -8px rgba(245,158,11,0.55), 0 4px 8px rgba(26,29,26,0.12);
  cursor: pointer; font-family: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
.flora-fab:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -10px rgba(245,158,11,0.65), 0 6px 12px rgba(26,29,26,0.15); }
.flora-fab__icon { display: block; width: 46px; height: 46px; }
.flora-fab__label {
  /* Visually hidden but kept for screen-reader users (the aria-label on the button also covers them). */
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.flora-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  width: min(420px, calc(100vw - 24px));
  max-height: min(640px, calc(100vh - 48px));
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px -12px rgba(26,29,26,0.25), 0 8px 16px rgba(26,29,26,0.08);
  display: none; flex-direction: column;
  z-index: 1001;   /* above WhatsApp (999) so the chat panel is not covered when open */
  overflow: hidden;
  border: 1px solid var(--p-line);
}
.flora-panel.is-open { display: flex; }
.flora-panel__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, #2d5f3f 0%, #1a3a2a 100%);
  color: #fff;
}
.flora-panel__title-wrap { display: flex; flex-direction: column; gap: 2px; }
.flora-panel__title {
  font-family: 'Lora', serif; font-weight: 600; font-size: 18px;
}
.flora-panel__subtitle { font-size: 12px; color: var(--p-green-300); }
.flora-panel__close {
  background: rgba(255,255,255,0.12); color: #fff; border: none;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.flora-panel__close:hover { background: rgba(255,255,255,0.22); }

.flora-panel__body {
  flex: 1; min-height: 320px; max-height: 480px;
  overflow-y: auto; padding: 16px;
  background: var(--p-cream-50);
}
.flora-messages { display: flex; flex-direction: column; gap: 10px; }
.flora-msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px; line-height: 1.5;
  word-wrap: break-word;
}
.flora-msg p { margin: 0; }
.flora-msg--bot { align-self: flex-start; background: #fff; color: var(--p-ink-900); border-bottom-left-radius: 4px; border: 1px solid var(--p-line); }
.flora-msg--user { align-self: flex-end; background: var(--p-green-700); color: #fff; border-bottom-right-radius: 4px; }
.flora-msg--typing { align-self: flex-start; background: transparent; color: var(--p-ink-600); font-style: italic; padding-left: 4px; }
.flora-msg--error { align-self: flex-start; background: #fdecea; color: #9b2c2c; border: 1px solid #f5c6c6; }

.flora-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.flora-suggest__chip {
  background: #fff; border: 1px solid var(--p-line);
  border-radius: 999px; padding: 6px 12px;
  font-size: 12px; color: var(--p-green-700);
  cursor: pointer; font: inherit;
  transition: background .2s, border-color .2s;
}
.flora-suggest__chip:hover { background: var(--p-green-100); border-color: var(--p-green-300); }

.flora-panel__input-row {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-top: 1px solid var(--p-line); background: #fff;
}
.flora-input {
  flex: 1; padding: 10px 14px;
  border: 1px solid var(--p-line); border-radius: 999px;
  font: inherit; font-size: 14px;
  outline: none; transition: border-color .2s;
  min-width: 0;
}
.flora-input:focus { border-color: var(--p-green-500); }
.flora-input:disabled { background: var(--p-cream-50); }
.flora-send {
  width: 38px; height: 38px; flex: 0 0 38px;
  border: none; border-radius: 50%;
  background: var(--p-green-700); color: #fff;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
}
.flora-send:hover { background: var(--p-green-900); }
.flora-send:active { transform: scale(0.92); }
.flora-send:disabled { background: var(--p-ink-600); opacity: 0.6; cursor: wait; }

@media (max-width: 500px) {
  /* WhatsApp is also at bottom:24 right:24 on mobile; we still stack above it. */
  .flora-fab {
    bottom: 92px;  /* 24 + 56 (slightly smaller whatsapp on small screens) + 12 */
    right: 18px;
    width: 52px; height: 52px;
  }
  .flora-fab__icon { width: 42px; height: 42px; }
  .flora-panel { bottom: 0; right: 0; left: 0; width: 100%; max-height: 80vh; border-radius: 20px 20px 0 0; }
  .flora-panel__body { max-height: 60vh; }
}

/* ============ SCROLL REVEAL ============ */
.trust-strip__item,
.space-tile,
.testimonial-card,
.journal-card {
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.trust-strip__item.is-revealed,
.space-tile.is-revealed,
.testimonial-card.is-revealed,
.journal-card.is-revealed {
  opacity: 1; transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .trust-strip__item,
  .space-tile,
  .testimonial-card,
  .journal-card { opacity: 1; transform: none; transition: none; }
}
