/* ============================================================
   SAYIN CARE — Custom styles (works alongside Tailwind CDN)
   ============================================================ */

:root {
  --primary: #1F7A52;
  --secondary: #63C56D;
  --dark: #184B3A;
  --light: #F6FBF7;
  --accent: #8FD14F;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  overflow-x: hidden;
}

::selection {
  background: var(--secondary);
  color: #fff;
}

/* ---------- Navigation ---------- */
#navbar {
  transition: background-color .4s ease, box-shadow .4s ease, padding .4s ease;
}

#navbar.nav-scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(24, 75, 58, .10);
}

.nav-link {
  position: relative;
  transition: color .3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .35s ease;
}

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

/* Transparent state (on hero): white links + white logo */
#navbar[data-transparent]:not(.nav-scrolled) .nav-link {
  color: rgba(255, 255, 255, .88);
}

#navbar[data-transparent]:not(.nav-scrolled) .nav-link:hover,
#navbar[data-transparent]:not(.nav-scrolled) .nav-link.active {
  color: #fff;
}

#navbar[data-transparent]:not(.nav-scrolled) .nav-logo {
  filter: brightness(0) invert(1);
}

#navbar[data-transparent]:not(.nav-scrolled) .nav-menu-btn {
  color: #fff;
}

#navbar.nav-scrolled .nav-link {
  color: #374151;
}

#navbar.nav-scrolled .nav-link:hover,
#navbar.nav-scrolled .nav-link.active {
  color: var(--primary);
}

#navbar.nav-scrolled .nav-menu-btn {
  color: var(--dark);
}

/* Pages without a hero: solid nav from the start */
#navbar:not([data-transparent]) {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(24, 75, 58, .10);
}

#navbar:not([data-transparent]) .nav-link {
  color: #374151;
}

#navbar:not([data-transparent]) .nav-link:hover,
#navbar:not([data-transparent]) .nav-link.active {
  color: var(--primary);
}

#navbar:not([data-transparent]) .nav-menu-btn {
  color: var(--dark);
}

/* Mobile menu */
#mobileMenu {
  transition: max-height .45s ease, opacity .35s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobileMenu.open {
  max-height: 520px;
  opacity: 1;
}

/* ---------- Hero ---------- */
.hero-gradient {
  background:
    radial-gradient(1100px 600px at 85% 10%, rgba(143, 209, 79, .22), transparent 60%),
    radial-gradient(900px 550px at 8% 88%, rgba(99, 197, 109, .25), transparent 60%),
    linear-gradient(135deg, #0f3d2c 0%, #184B3A 38%, #1F7A52 100%);
}

.hero-grid-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* Floating blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
  animation: blobFloat 14s ease-in-out infinite alternate;
}

@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -35px) scale(1.08); }
  100% { transform: translate(-25px, 25px) scale(.95); }
}

/* Floating capsules */
.capsule {
  position: absolute;
  width: 54px;
  height: 24px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  pointer-events: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .22);
  animation: capsuleFloat 9s ease-in-out infinite;
}

.capsule::before,
.capsule::after {
  content: "";
  flex: 1;
}

.capsule::before { background: #fff; }
.capsule::after  { background: var(--accent); }

.capsule.c-alt::after { background: var(--secondary); }

.capsule.c-pill {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.capsule.c-pill::after { display: none; }
.capsule.c-pill::before { background: radial-gradient(circle at 35% 35%, #fff, #cfe9d8); }

@keyframes capsuleFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 20deg)); }
  50%      { transform: translateY(-26px) rotate(calc(var(--rot, 20deg) + 12deg)); }
}

/* Slow product float */
.float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

/* Hero swiper */
.hero-swiper {
  aspect-ratio: 1 / 1;
}

.hero-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, .7);
  opacity: 1;
  width: 9px;
  height: 9px;
  transition: width .3s ease, background .3s ease;
  border-radius: 999px;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--accent);
  width: 26px;
}

/* ---------- Cards / surfaces ---------- */
.card-30 {
  border-radius: 30px;
}

.soft-shadow {
  box-shadow: 0 18px 45px -12px rgba(24, 75, 58, .16);
}

.hover-lift {
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -15px rgba(24, 75, 58, .28);
}

.glass {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .65);
}

.glass-dark {
  background: rgba(255, 255, 255, .10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .22);
}

/* Icon tile */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(99, 197, 109, .16), rgba(31, 122, 82, .12));
  color: var(--primary);
  font-size: 26px;
  transition: transform .4s ease, background .4s ease, color .4s ease;
}

.group:hover .icon-tile {
  transform: scale(1.08) rotate(-4deg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-outline,
.btn-white {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #2b9a68);
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(31, 122, 82, .55);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -8px rgba(31, 122, 82, .6);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, .8);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .14);
  transform: translateY(-3px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .3);
}

.btn-white:hover {
  transform: translateY(-3px);
}

/* Ripple effect (added via JS) */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  transform: scale(0);
  animation: rippleAnim .65s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ---------- Section helpers ---------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(99, 197, 109, .12);
  border: 1px solid rgba(99, 197, 109, .3);
  padding: .45rem 1.1rem;
  border-radius: 999px;
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Product cards ---------- */
.product-img-wrap {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.product-img-wrap img {
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.price-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--light);
  border: 1.5px solid rgba(99, 197, 109, .35);
  border-radius: 18px;
  padding: .55rem 1.1rem;
  line-height: 1.2;
}

/* ---------- Modal ---------- */
#productModal {
  transition: opacity .35s ease;
}

#productModal.hidden-modal {
  opacity: 0;
  pointer-events: none;
}

#productModal .modal-panel {
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .35s ease;
}

#productModal.hidden-modal .modal-panel {
  transform: translateY(40px) scale(.97);
  opacity: 0;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- Process timeline ---------- */
.process-line {
  position: absolute;
  top: 44px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--secondary) 0 12px, transparent 12px 24px);
  opacity: .5;
}

.process-step .step-dot {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 15px 35px -10px rgba(24, 75, 58, .22);
  border: 1.5px solid rgba(99, 197, 109, .35);
  transition: transform .4s ease, background .4s ease, color .4s ease;
  position: relative;
  z-index: 1;
}

.process-step:hover .step-dot {
  transform: translateY(-8px) scale(1.05);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1.5px solid rgba(99, 197, 109, .25);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .3s ease, border-color .3s ease;
}

.faq-item.open {
  border-color: var(--secondary);
  box-shadow: 0 16px 40px -14px rgba(24, 75, 58, .18);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s ease, padding .45s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-item .faq-icon {
  transition: transform .4s ease, background .3s ease, color .3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #fff;
}

/* ---------- Forms ---------- */
.form-field {
  width: 100%;
  border-radius: 16px;
  border: 1.5px solid rgba(24, 75, 58, .15);
  background: rgba(255, 255, 255, .85);
  padding: .85rem 1.15rem;
  font-size: .95rem;
  color: #1f2937;
  outline: none;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.form-field:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(99, 197, 109, .18);
}

.form-field::placeholder {
  color: #9ca3af;
}

label.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .4rem;
}

/* ---------- Star rating (feedback form) ---------- */
.star-rating label {
  cursor: pointer;
  font-size: 1.65rem;
  color: #d8e3dc;
  transition: color .2s ease, transform .2s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #F2B705;
}

.star-rating label:hover {
  transform: scale(1.15);
}

.star-rating input:focus-visible + label {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Partner logo carousel ---------- */
.partners-swiper {
  padding: 6px 4px 10px;
}

.partners-swiper .swiper-slide {
  height: auto;
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 14px 30px -6px rgba(37, 211, 102, .55);
  transition: transform .3s ease;
}

.wa-float:hover {
  transform: scale(1.1) translateY(-3px);
}

.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulse 2s ease-out infinite;
}

@keyframes waPulse {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- Misc ---------- */
.marquee-mask {
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

img {
  max-width: 100%;
}

/* Back to top */
#backToTop {
  transition: opacity .35s ease, transform .35s ease;
}

#backToTop.hide {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .blob, .capsule, .float-slow, .wa-float::after {
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}
