/* ============================================
   UNIFLORA HOLISTICS — WHITE LABEL WEBSITE
   Custom Styles, Animations & Premium Effects
   ============================================ */

/* --- Base & Reset --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  opacity: 0;
  animation: pageLoad 0.6s ease-out 0.1s forwards;
  overflow-x: hidden;
}

::selection {
  background: rgba(34, 143, 28, 0.25);
  color: #1a1a1a;
}

/* --- Page Load Animation --- */
@keyframes pageLoad {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Brand Gradients --- */
.brand-gradient {
  background: linear-gradient(135deg, #228F1C 0%, #77BD1E 100%);
}

.brand-gradient-text {
  background: linear-gradient(135deg, #228F1C 0%, #77BD1E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-gradient {
  background: linear-gradient(160deg, #0d1210 0%, #1b1f22 40%, #1a2e18 70%, #1b1f22 100%);
}

.hero-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(34, 143, 28, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(119, 189, 30, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(34, 143, 28, 0.08) 0%, transparent 50%),
    linear-gradient(160deg, #0d1210 0%, #1b1f22 40%, #1a2e18 70%, #1b1f22 100%);
  animation: meshShift 12s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { background-position: 0% 0%, 100% 0%, 50% 100%, 0% 0%; }
  100% { background-position: 10% 10%, 90% 10%, 40% 90%, 0% 0%; }
}

.section-gradient-transition {
  background: linear-gradient(180deg, #faf9f6 0%, #f5f0eb 100%);
}

/* --- Glassmorphism --- */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  border-color: rgba(34, 143, 28, 0.3);
}

.glass-card-dark {
  background: rgba(27, 31, 34, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card-dark:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
  border-color: rgba(119, 189, 30, 0.3);
}

/* --- Floating Decorative Blobs --- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.blob-green {
  background: linear-gradient(135deg, #228F1C, #77BD1E);
}

.blob-orange {
  background: linear-gradient(135deg, #f7941d, #ffbb40);
}

/* --- Scroll Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="slide-left"] {
  transform: translateX(-40px);
}

[data-animate="slide-left"].visible {
  transform: translateX(0);
}

[data-animate="slide-right"] {
  transform: translateX(40px);
}

[data-animate="slide-right"].visible {
  transform: translateX(0);
}

[data-animate="scale"] {
  transform: scale(0.92);
}

[data-animate="scale"].visible {
  transform: scale(1);
}

/* Stagger delays for grid children */
[data-stagger] > *:nth-child(1) { transition-delay: 0ms; }
[data-stagger] > *:nth-child(2) { transition-delay: 100ms; }
[data-stagger] > *:nth-child(3) { transition-delay: 200ms; }
[data-stagger] > *:nth-child(4) { transition-delay: 300ms; }
[data-stagger] > *:nth-child(5) { transition-delay: 400ms; }
[data-stagger] > *:nth-child(6) { transition-delay: 500ms; }

/* --- Button Effects --- */
.btn-primary {
  background: #f7941d;
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 14px rgba(247, 148, 29, 0.3);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(247, 148, 29, 0.45);
  background: #e8870f;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(247, 148, 29, 0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.btn-green {
  background: linear-gradient(135deg, #228F1C, #2BA523);
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 14px rgba(34, 143, 28, 0.3);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 143, 28, 0.45);
}

/* --- Nav Styles --- */
.nav-link {
  position: relative;
  color: #d1d5db;
  transition: color 0.3s;
  text-decoration: none;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #228F1C, #77BD1E);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 1px;
}

.nav-link:hover {
  color: #77BD1E;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #77BD1E;
}

/* Sticky nav shadow */
.nav-scrolled {
  background: rgba(27, 31, 34, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(13, 18, 16, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.mobile-menu.open a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.open a:nth-child(7) { transition-delay: 0.4s; }
.mobile-menu.open a:nth-child(8) { transition-delay: 0.45s; }

.mobile-menu a:hover {
  color: #77BD1E;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 100;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1023px) {
  .hamburger {
    display: flex;
  }
}

/* --- Sticky Mobile CTA --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 12px 20px;
  background: rgba(27, 31, 34, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(119, 189, 30, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: none;
}

.sticky-cta.visible {
  transform: translateY(0);
}

@media (max-width: 767px) {
  .sticky-cta {
    display: block;
  }
}

/* --- Image Placeholders --- */
.img-placeholder {
  background: linear-gradient(135deg, #e8ddd0, #f5f0eb);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8B6F47;
  font-weight: 500;
  font-size: 0.875rem;
  text-align: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(139, 111, 71, 0.25);
  border-radius: inherit;
  pointer-events: none;
}

.img-placeholder svg {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: #1a1a1a;
  transition: color 0.3s;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  color: #228F1C;
}

.faq-question .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: #228F1C;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              padding 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0 0;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 0 20px 0;
}

.faq-answer p {
  color: #4a4a4a;
  line-height: 1.7;
}

/* --- Process Timeline --- */
.timeline-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #228F1C 0%, #77BD1E 50%, rgba(119, 189, 30, 0.2) 100%);
}

.timeline-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #228F1C, #77BD1E);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(34, 143, 28, 0.3);
  position: relative;
  z-index: 1;
}

/* --- Card Hover Tilt (subtle) --- */
.tilt-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tilt-card:hover {
  transform: perspective(1000px) rotateX(-2deg) rotateY(2deg) translateY(-4px);
}

/* --- Number Counter --- */
.counter-value {
  font-variant-numeric: tabular-nums;
}

/* --- Parallax --- */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 767px) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #228F1C 0%, #1a6d15 40%, #228F1C 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(119, 189, 30, 0.15);
  filter: blur(60px);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(247, 148, 29, 0.1);
  filter: blur(60px);
  pointer-events: none;
}

/* --- Landing Page Specific --- */
.pulse-btn {
  animation: pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(247, 148, 29, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(247, 148, 29, 0.6); }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #228F1C, #77BD1E);
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
}

.ticker {
  display: flex;
  animation: ticker 20s linear infinite;
  gap: 48px;
  white-space: nowrap;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Form Styles --- */
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e0dbd5;
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: #228F1C;
  box-shadow: 0 0 0 3px rgba(34, 143, 28, 0.1);
}

.form-input::placeholder {
  color: #a0a0a0;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: #1a1a1a;
  margin-bottom: 6px;
}

/* --- Bento Grid --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 20px;
}

.bento-grid .bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-grid .bento-tall {
  grid-row: span 2;
}

@media (max-width: 767px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid .bento-large,
  .bento-grid .bento-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1b1f22;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #228F1C, #77BD1E);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2BA523;
}

/* --- Fluid Typography --- */
.text-fluid-xl {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
}

.text-fluid-lg {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.text-fluid-md {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.text-fluid-sm {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
}

/* --- Misc Utilities --- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.text-balance { text-wrap: balance; }

/* --- Print Styles --- */
@media print {
  .sticky-cta, nav, .mobile-menu, .blob { display: none !important; }
  body { opacity: 1; }
  [data-animate] { opacity: 1; transform: none; }
}
