/* ---------- GrowNexaura enhancements: motion, chat, enquiry form ---------- */

/* Animated logo: fades and rises on load, then a light shine sweeps across */
.brand { position: relative; display: inline-block; overflow: hidden; }
.brand img, .flogo {
  animation: logoIn .9s cubic-bezier(.2,.7,.2,1) both;
}
.brand::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); animation: shine 3.8s ease-in-out 1.2s infinite;
  pointer-events: none;
}
@keyframes logoIn {
  from { opacity: 0; transform: translateY(-8px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes shine {
  0%, 60% { left: -60%; }
  100%    { left: 130%; }
}

/* Hero: soft animated colour blobs behind the copy */
.hero { position: relative; isolation: isolate; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(70px); opacity: .35; pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px; top: -120px; left: -120px;
  background: var(--teal, #0fb9a4); animation: drift 14s ease-in-out infinite alternate;
}
.hero::after {
  width: 380px; height: 380px; bottom: -140px; right: -100px;
  background: var(--blue, #2f6bff); animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(60px,40px) scale(1.12); }
}

/* Gradient accent word, slowly shifting */
.accent {
  background: linear-gradient(90deg, var(--teal, #0fb9a4), var(--blue, #2f6bff), var(--teal, #0fb9a4));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  color: transparent; animation: gradMove 6s linear infinite;
}
@keyframes gradMove { to { background-position: 200% center; } }

/* Services marquee strip */
.marquee {
  overflow: hidden; border-block: 1px solid rgba(11,16,32,.08);
  background: var(--card, #fffdf8); padding: 16px 0;
}
.marquee-track {
  display: flex; gap: 48px; width: max-content; animation: marq 32s linear infinite;
  font-weight: 600; color: var(--ink, #0b1020); white-space: nowrap;
}
.marquee-track span::after { content: "✦"; margin-left: 48px; color: var(--teal, #0fb9a4); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* Richer cards on hover */
.pillar, .engine-card, .why-item, .founder {
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.pillar:hover, .engine-card:hover, .why-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -18px rgba(11,16,32,.25);
  border-color: rgba(15,185,164,.45);
}

/* Growth path (example plan, not a promise) */
.path { display: grid; gap: 18px; margin-top: 28px; }
.path-step {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start;
  background: var(--card, #fffdf8); border: 1px solid rgba(11,16,32,.08);
  border-radius: 16px; padding: 20px;
}
.path-step b.n {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--teal, #0fb9a4), var(--blue, #2f6bff)); color: #fff;
  font-size: 13px; letter-spacing: .04em; text-align: center; line-height: 1.2;
}
.path-step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.path-step p { margin: 0; color: #4a5366; }
.path-note { margin-top: 12px; font-size: .9rem; color: #6a7388; }
@media (min-width: 900px) {
  .path { grid-template-columns: repeat(3, 1fr); }
}

/* Enquiry form */
.enquiry-wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .enquiry-wrap { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.enquiry {
  background: var(--card, #fffdf8); border: 1px solid rgba(11,16,32,.08);
  border-radius: 20px; padding: 26px; box-shadow: 0 10px 30px -18px rgba(11,16,32,.2);
}
.enquiry .row { display: grid; gap: 14px; }
@media (min-width: 640px) { .enquiry .row.two { grid-template-columns: 1fr 1fr; } }
.enquiry label { display: grid; gap: 6px; font-size: .92rem; font-weight: 600; color: var(--ink, #0b1020); margin-bottom: 14px; }
.enquiry input, .enquiry select, .enquiry textarea {
  font: inherit; font-weight: 400; font-size: 1rem; width: 100%;
  padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(11,16,32,.18);
  background: #fff; color: var(--ink, #0b1020);
}
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus {
  outline: 3px solid rgba(15,185,164,.35); border-color: var(--teal, #0fb9a4);
}
.enquiry textarea { min-height: 110px; resize: vertical; }
.enquiry .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; color: #4a5366; }
.enquiry .consent input { width: auto; margin-top: 4px; }
.enquiry .hint { font-size: .85rem; color: #6a7388; margin: 12px 0 0; }
.enquiry .status { min-height: 1.4em; font-weight: 600; color: var(--teal-dark, #0a8a7a); margin-top: 10px; }
.enquiry-side h3 { margin-top: 0; }
.enquiry-side ul { padding-left: 18px; color: #4a5366; }
.enquiry-side .direct { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Chat helper */
.chat { position: fixed; left: 18px; bottom: 18px; z-index: 60; font-family: inherit; }
.chat-fab {
  border: 0; cursor: pointer; border-radius: 999px; padding: 14px 20px; font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  background: var(--ink, #0b1020); color: #fff; box-shadow: 0 12px 30px -10px rgba(11,16,32,.5);
}
.chat-panel {
  position: absolute; left: 0; bottom: 64px; width: min(340px, calc(100vw - 36px));
  background: var(--card, #fffdf8); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(11,16,32,.45); border: 1px solid rgba(11,16,32,.08);
}
.chat-panel[hidden] { display: none; }
.chat-head { background: var(--ink, #0b1020); color: #fff; padding: 14px 16px; font-weight: 600; }
.chat-head small { display: block; font-weight: 400; opacity: .8; font-size: 12px; }
.chat-log { height: 260px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.45; }
.chat-msg.bot { background: #f0ece2; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.me { background: var(--teal, #0fb9a4); color: #04221e; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid rgba(11,16,32,.08); }
.chat-quick button {
  border: 1px solid rgba(11,16,32,.18); background: #fff; border-radius: 999px;
  padding: 7px 12px; font-family: inherit; font-weight: 500; font-size: 13px; cursor: pointer; color: var(--ink, #0b1020);
}
.chat-quick button:hover { border-color: var(--teal, #0fb9a4); }
.chat-foot { padding: 0 14px 12px; font-size: 12px; color: #6a7388; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
}
