/* =====================================================================
   FlourishGee Hydro Tech + Juliet's Services — shared stylesheet
   Default style: clean / corporate / professional (water/teal accent)
   .page-jgf override: Multistream brand colors (blue / orange / green)
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

/* ---------- Design tokens ---------- */
:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f5f9fb;
  --color-text: #1a2b3c;
  --color-muted: #5a6b7c;
  --color-border: #e0e6ec;
  --color-accent: #0a7ea4; /* water/teal */
  --color-accent-2: #086582;
  --color-accent-3: #d6ecf3; /* very light teal */

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 30, 45, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 30, 45, 0.08);
  --shadow-lg: 0 14px 36px rgba(15, 30, 45, 0.12);

  --max-width: 1140px;
  --space: 1rem;

  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display:
    "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-2);
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  color: var(--color-text);
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

/* =====================================================================
   HEADER — company name stands out, big & bold, centered
   ===================================================================== */
.site-header {
  background: var(--color-bg);
  text-align: center;
  padding: 3rem 1.25rem 1.8rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 999px;
}

.company-name {
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  letter-spacing: -1px;
  margin: 0;
  color: var(--color-text);
  font-weight: 800;
  line-height: 1.05;
}

.company-name strong {
  font-weight: 800;
}

.tagline {
  margin: 0.7rem 0 0;
  color: var(--color-accent);
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-body);
}

/* =====================================================================
   NAV — pill buttons in their own row UNDER the header
   ===================================================================== */
.main-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.9rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 rgba(15, 30, 45, 0.04);
}

.nav-btn {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.92rem;
  font-family: var(--font-body);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.nav-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-btn--alt {
  background: var(--color-text);
  color: #ffffff;
  border-color: var(--color-text);
}

.nav-btn--alt:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* =====================================================================
   SECTION layout
   ===================================================================== */
main {
  width: 100%;
}

main > section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

main > section + section {
  border-top: 1px solid var(--color-border);
}

main h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 1rem;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.hero-text {
     text-align: center;
     border: 2px solid var(--color-border);
     border-radius: var(--radius-lg);
     padding: 2rem;
     background: var(--color-bg);
   }

.hero-text h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
  text-align-last: left;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  right: -18px;
  bottom: -18px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-accent);
  opacity: 0.25;
  z-index: -1;
}

.cta-btn {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.95rem 1.8rem;
  background: var(--color-accent);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.3px;
  font-size: 0.98rem;
  box-shadow: 0 6px 14px rgba(10, 126, 164, 0.25);
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.cta-btn:hover {
  background: var(--color-accent-2);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(10, 126, 164, 0.32);
}
.order-btn {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.95rem 1.8rem;
  background: var(--ms-orange);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.3px;
  font-size: 0.98rem;
  box-shadow: 0 6px 14px rgba(240, 144, 26, 0.3);
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.order-btn:hover {
  background: #c97614;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(240, 144, 26, 0.38);
}
/* =====================================================================
   ABOUT
   ===================================================================== */
.about {
  background: var(--color-bg);
}

.strong-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.strong-points li {
  background: var(--color-accent-3);
  border-left: 4px solid var(--color-accent);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

/* =====================================================================
   SERVICES
   ===================================================================== */
.services {
  background: var(--color-bg-soft);
  max-width: none; /* full-bleed background */
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.services > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
  margin-top: 1.2rem;
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card h3 {
  margin-top: 0;
  color: var(--color-accent);
  font-size: 1.15rem;
}

.service-card p {
  margin-bottom: 0;
  color: var(--color-muted);
}

/* =====================================================================
   GALLERY
   ===================================================================== */
.gallery-intro {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.gallery-subhead {
  margin: 2rem 0 1rem;
  font-size: 1.1rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-left: 3px solid var(--color-accent);
  padding-left: 0.6rem;
}

.gallery-subhead:first-of-type {
  margin-top: 0.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-grid + .gallery-subhead {
  margin-top: 2.5rem;
}

.gallery-grid figure {
  margin: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.gallery-grid figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-grid figure img {
  transition: transform 0.4s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  background: var(--color-bg);
}

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact {
  background: var(--color-bg);
  text-align: center;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem auto 0;
  max-width: 480px;
  display: grid;
  gap: 0.6rem;
}

.contact-list li {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--color-text);
  color: #cfd8e0;
  text-align: center;
  padding: 1.6rem 1rem;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

.site-footer a {
  color: #ffffff;
}

/* =====================================================================
   JULIET'S SERVICES (JGF) — Multistream brand colors
   Blue + Orange + Green from the Multistream "M" logo
   ===================================================================== */
.page-jgf {
  --ms-blue: #1c64bb;
  --ms-orange: #f0901a;
  --ms-green: #5cb947;

  --color-accent: var(--ms-blue);
  --color-accent-2: #154e92;
  --color-accent-3: #e3edf8;

  /* Subtle herbal-green background wash for the whole page —
       noticeable but not loud. */
  --color-bg-soft: #ebf2ec;
  background: #f3f8f4;
}

/* Header keeps a clean white card-feel against the green wash */
.page-jgf .site-header {
  background: #ffffff;
}

/* Gradient strip across the very top in Multistream colors */
.page-jgf .site-header {
  position: relative;
  background: var(--color-bg);
}

.page-jgf .site-header::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(
    to right,
    var(--ms-blue) 0%,
    var(--ms-blue) 33%,
    var(--ms-orange) 33%,
    var(--ms-orange) 66%,
    var(--ms-green) 66%,
    var(--ms-green) 100%
  );
  margin: -2.8rem -1.25rem 1.5rem;
}

.page-jgf .tagline {
  color: var(--ms-orange);
}

/* Hero on JGF page */
.page-jgf .hero-text h2 {
  color: var(--ms-blue);
}

.page-jgf .cta-btn {
  background: var(--ms-orange);
  box-shadow: 0 6px 14px rgba(240, 144, 26, 0.3);
}

.page-jgf .cta-btn:hover {
  background: #c97614;
  box-shadow: 0 10px 22px rgba(240, 144, 26, 0.38);
}

.page-jgf .site-header::after {
  background: var(--ms-orange);
}

.page-jgf .hero-image::before {
  border-color: var(--ms-orange);
}

/* Service-card title color override on JGF page */
.page-jgf .service-card h3 {
  color: var(--ms-blue);
}

/* Products grid — three product showcases */
.products {
  background: var(--color-bg-soft);
  max-width: none;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.products > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.2rem;
}

.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--color-bg-soft);
}

.product-card-body {
  padding: 1.1rem 1.25rem 1.4rem;
}

.product-card h3 {
  margin: 0 0 0.3rem;
  color: var(--ms-blue);
}

.product-card .product-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--ms-green);
  color: #fff;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
}

.product-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Benefits list — Jinja Herbal Extracts */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.6rem;
}

.benefits-list li {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--ms-green);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

/* Testimonials / reviews */
.reviews {
  background: var(--color-bg);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
  margin-top: 1.2rem;
}

.review-card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  position: relative;
}

.review-card::before {
  content: "\201C";
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--ms-orange);
  font-family: Georgia, serif;
}

.review-quote {
  margin: 0.6rem 0 0.9rem;
  color: var(--color-text);
  font-style: italic;
}

.review-author {
  margin: 0;
  font-weight: 700;
  color: var(--ms-blue);
}

.review-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Old "coming soon" placeholder (kept for safety) */
.coming-soon {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--color-bg-soft);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

/* ---------- Pricing tiers ---------- */
.pricing {
  background: var(--color-bg);
}

.pricing-intro {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
}

.price-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    border-color 0.15s;
  position: relative;
}

.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.price-card--featured {
  border: 2px solid var(--ms-orange);
  background: linear-gradient(180deg, #fff 60%, #fff7ed 100%);
}

.price-card--featured::after {
  content: "BEST VALUE";
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ms-orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.price-card h3 {
  margin: 0 0 0.4rem;
  color: var(--ms-blue);
  font-size: 1.1rem;
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0.6rem 0 0.3rem;
  line-height: 1;
}

.price-save {
  color: var(--ms-green);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.price-card .cta-btn {
  margin-top: 0.4rem;
  width: 100%;
  text-align: center;
}

/* ---------- Disclaimer / safety note ---------- */
.disclaimer-note {
  background: #fff7ed;
  border: 1px solid #f4c98a;
  border-left: 4px solid var(--ms-orange);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: #6b4a14;
}

.disclaimer-note strong {
  color: #b35a05;
}

/* ---------- Distributor / earn section ---------- */
.earn {
  background: var(--color-bg-soft);
  max-width: none;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.earn > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.earn-tag {
  display: inline-block;
  background: var(--ms-orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.earn h2 {
  color: var(--ms-blue);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.earn-perks {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.6rem;
}

.earn-perks li {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--ms-blue);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.who-its-for {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.who-its-for h3 {
  color: var(--ms-orange);
  margin-top: 0;
}

.who-its-for ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 1.5rem;
}

.who-its-for li {
  margin-bottom: 0.4rem;
  break-inside: avoid;
}

@media (max-width: 600px) {
  .who-its-for ul {
    columns: 1;
  }
}

/* =====================================================================
   MINI Q&A CHAT WIDGET (Juliet's page)
   ===================================================================== */
.chat-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--ms-orange, #f0901a);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(240, 144, 26, 0.42);
  z-index: 100;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(240, 144, 26, 0.55);
}

.chat-fab svg {
  width: 20px;
  height: 20px;
}

.chat-panel {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: min(380px, calc(100vw - 2rem));
  height: min(580px, calc(100vh - 3rem));
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(15, 30, 45, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
  animation: chatSlideUp 0.28s ease-out;
}

@keyframes chatSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-panel[hidden],
.chat-panel:not(.is-open) {
  display: none !important;
}

.chat-panel.is-open {
  display: flex !important;
}

.chat-header {
  background: linear-gradient(
    135deg,
    var(--ms-blue, #1c64bb),
    var(--ms-green, #5cb947)
  );
  color: #fff;
  padding: 0.95rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.chat-header-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.chat-header-text span {
  display: block;
  font-size: 0.78rem;
  opacity: 0.9;
  margin-top: 0.1rem;
}

.chat-header-text .live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #5cff8a;
  border-radius: 50%;
  margin-right: 0.4rem;
  box-shadow: 0 0 0 0 rgba(92, 255, 138, 0.7);
  animation: chatPulse 1.6s infinite;
}

@keyframes chatPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(92, 255, 138, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(92, 255, 138, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(92, 255, 138, 0);
  }
}

.chat-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #f5faf6;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.msg {
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.93rem;
  line-height: 1.5;
  animation: msgIn 0.25s ease-out;
}

.msg p {
  margin: 0;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg.bot {
  background: #ffffff;
  border: 1px solid #e0eae2;
  color: var(--color-text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.msg.user {
  background: var(--ms-blue, #1c64bb);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.typing {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.3rem 0.2rem;
}

.typing span {
  width: 7px;
  height: 7px;
  background: var(--ms-blue, #1c64bb);
  border-radius: 50%;
  opacity: 0.4;
  animation: typingDot 1.2s infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingDot {
  0%,
  60%,
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem 0 0.2rem;
}

.suggest {
  background: #fff;
  border: 1px solid var(--ms-blue, #1c64bb);
  color: var(--ms-blue, #1c64bb);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  transition:
    background 0.15s,
    color 0.15s;
}

.suggest:hover {
  background: var(--ms-blue, #1c64bb);
  color: #fff;
}

.chat-form {
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem;
  border-top: 1px solid #e0eae2;
  background: #fff;
}

.chat-form input {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s ease;
}

.chat-form input:focus {
  border-color: var(--ms-blue, #1c64bb);
}

.chat-form button {
  background: var(--ms-orange, #f0901a);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition:
    background 0.15s ease,
    transform 0.1s ease;
}

.chat-form button:hover {
  background: #c97614;
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .chat-panel {
    width: calc(100vw - 1rem);
    height: calc(100vh - 1rem);
    bottom: 0.5rem;
    right: 0.5rem;
  }

  .chat-fab {
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
}

/* =====================================================================
   Subtle entrance animation for sections (no JS)
   ===================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main > section {
  animation: fadeUp 0.6s ease-out both;
}

/* Stagger so sections feel intentional rather than slamming in together */
main > section:nth-child(2) {
  animation-delay: 0.05s;
}
main > section:nth-child(3) {
  animation-delay: 0.1s;
}
main > section:nth-child(4) {
  animation-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  main > section {
    animation: none;
  }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .hero-image {
    order: -1; /* image on top on mobile */
  }

  .hero-image::before {
    display: none; /* skip decorative outline on mobile */
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding: 2.2rem 1rem 1.4rem;
  }

  .main-nav {
    gap: 0.4rem;
    padding: 0.7rem 0.5rem;
  }

  .nav-btn {
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
  }

  main > section {
    padding: 2.5rem 1rem;
  }
}

.earn {
  text-align: center;
}

/* Lists read better left-aligned even when the section is centered */
.earn-perks,
.who-its-for ul,
.next-steps,
.who-its-for {
  text-align: left;
}

/* =====================================================================
   JGF COMPACT — tighter spacing on Juliet's page only
   (the plumbing page stays roomy)
   ===================================================================== */
.page-jgf main > section {
  padding: 2rem 1.25rem; /* was 3.5rem */
}

.page-jgf .hero {
  padding-top: 2.2rem !important;
  padding-bottom: 2.2rem !important;
  gap: 2rem; /* was 3rem */
}

.page-jgf .site-header {
  padding: 1.8rem 1.25rem 1.2rem; /* was 3rem 1.25rem 1.8rem */
}

.page-jgf main h2 {
  margin-bottom: 0.6rem; /* tighter under headings */
}

.page-jgf .strong-points,
.page-jgf .benefits-list,
.page-jgf .earn-perks {
  gap: 0.4rem; /* was 0.6rem */
}

.page-jgf .strong-points li,
.page-jgf .benefits-list li,
.page-jgf .earn-perks li {
  padding: 0.55rem 0.9rem; /* tighter list rows */
}

.page-jgf .product-grid,
.page-jgf .pricing-grid,
.page-jgf .review-grid {
  gap: 0.9rem; /* was 1.1–1.25rem */
  margin-top: 0.8rem;
}

.page-jgf .product-card-body {
  padding: 0.9rem 1rem 1rem; /* was 1.1rem 1.25rem 1.4rem */
}

.page-jgf .price-card {
  padding: 1.2rem 1rem; /* was 1.6rem 1.25rem */
}

.page-jgf .review-card {
  padding: 1rem 1.1rem; /* was 1.3rem */
}

.page-jgf .who-its-for {
  padding: 1.1rem 1.2rem; /* was 1.5rem */
  margin: 1rem 0;
}

.page-jgf .disclaimer-note {
  padding: 0.75rem 1rem;
  margin-top: 1rem;
}

.page-jgf section h3[style] {
  margin-top: 1.2rem !important; /* the inline 2rem/2.5rem gaps shrink */
}

.page-jgf .earn h2 {
  margin-bottom: 0.4rem;
}
