/* components.css */
/* Buttons */
.btn {
  font-family: var(--font-body);
  font-weight: var(--font-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--color-emerald);
  color: var(--color-white);
}
.btn--primary:hover {
  background-color: var(--color-emerald-dark);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: transparent;
  border-color: var(--color-charcoal);
  color: var(--color-charcoal);
}
.btn--secondary:hover {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

.btn--secondary-light {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn--secondary-light:hover {
  background-color: var(--color-white);
  color: var(--color-charcoal);
}

.btn--gold {
  background-color: var(--color-gold);
  color: var(--color-charcoal);
}
.btn--gold:hover {
  filter: brightness(1.1);
}

.btn--whatsapp {
  background-color: #25D366;
  color: var(--color-white);
}

.btn--large {
  padding: 1.25rem 3rem;
  font-size: 0.875rem;
}

.btn--icon {
  gap: 0.75rem;
}

/* Cards */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card--bordered {
  box-shadow: none;
  border: 1px solid var(--color-gray-200);
}
.card--bordered:hover {
  box-shadow: var(--shadow-md);
}

.card--dark {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

/* Stats */
.stat {
  text-align: center;
}
.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--color-gold);
  font-weight: var(--font-bold);
  line-height: var(--leading-none);
}
.stat__label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* Step cards */
.step {
  position: relative;
}
.step__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-emerald);
  opacity: 0.2;
  font-weight: 800;
  line-height: 1;
}
.step__title {
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-block: 0.5rem;
}
.step__description {
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
}

/* Feature cards */
.feature-card {
  padding: 2.5rem;
  text-align: left;
  border-left: 3px solid var(--color-emerald);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-card__title {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9375rem;
  font-weight: var(--font-bold);
  margin-bottom: 0.75rem;
}
.feature-card__description {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: var(--leading-relaxed);
}

/* Product cards */
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  cursor: pointer;
}
.product-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card__image {
  transform: scale(1.05);
}
.product-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%);
  pointer-events: none;
}
.product-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: var(--color-white);
  z-index: 2;
}
.product-card__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.product-card__items {
  font-size: 0.875rem;
  opacity: 0.85;
  line-height: 1.8;
}

/* Form elements */
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  font-size: 0.8125rem;
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  display: block;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 3px rgba(11,107,58,0.1);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B6D68'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1.25rem;
  padding-right: 3rem;
}
.form-input--error, .form-select--error, .form-textarea--error {
  border-color: #E53E3E;
}
.form-error {
  color: #E53E3E;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}
.form-file {
  padding: 2rem;
  border: 2px dashed var(--color-gray-300);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.form-file:hover, .form-file.is-active {
  border-color: var(--color-emerald);
  background-color: rgba(11,107,58,0.02);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Multi-step form */
.form-container {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-xl);
  max-width: 720px;
  margin: auto;
}
.form-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
}
.form-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-gray-200);
  z-index: 0;
  transform: translateY(-50%);
}
.form-progress__step {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: var(--font-semibold);
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
  color: var(--color-gray-500);
}
.form-progress__step.active {
  background-color: var(--color-emerald);
  color: var(--color-white);
  box-shadow: 0 0 0 4px rgba(11,107,58,0.2);
}
.form-progress__step.completed {
  background-color: var(--color-emerald);
  color: var(--color-white);
}
.single-page-form {
  display: block;
}
.form-section {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  border: 1px solid var(--color-gray-100);
}
.form-section__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-charcoal);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-gray-200);
}
@media (max-width: 768px) {
  .form-section {
    padding: 1.5rem;
  }
}

/* Form confirmation */
.form-confirmation {
  text-align: center;
  padding: 3rem 2rem;
}
.form-confirmation__icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--color-emerald);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-confirmation__icon svg {
  stroke: var(--color-white);
  width: 2rem;
  height: 2rem;
}
.requirement-id {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  background-color: var(--color-offwhite);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  display: inline-block;
  letter-spacing: 0.05em;
  color: var(--color-emerald);
  font-weight: var(--font-semibold);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition-base);
}
.nav.scrolled {
  background-color: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color var(--transition-base);
}
.nav.scrolled .nav__logo {
  color: var(--color-charcoal);
}
.nav__logo-img {
  max-height: 90px;
  width: auto;
  object-fit: contain;
  transition: max-height var(--transition-base), opacity var(--transition-fast);
}
.nav.scrolled .nav__logo-img {
  max-height: 70px;
}
.nav__links {
  display: none;
  gap: 2.5rem;
  list-style: none;
}
@media (min-width: 1025px) {
  .nav__links {
    display: flex;
    align-items: center;
  }
}
.nav__link {
  font-size: 0.8125rem;
  font-weight: var(--font-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition-fast);
  cursor: pointer;
}
.nav.scrolled .nav__link {
  color: var(--color-text-light);
}
.nav__link:hover, .nav.scrolled .nav__link:hover {
  color: var(--color-white);
}
.nav.scrolled .nav__link:hover {
  color: var(--color-emerald);
}
.nav__cta {
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
}
.nav.scrolled .nav__cta,
.nav.scrolled .nav__cta:hover {
  color: var(--color-white);
}
.nav__toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
@media (min-width: 1025px) {
  .nav__toggle {
    display: none;
  }
}
.nav__toggle span {
  width: 1.5rem;
  height: 2px;
  background-color: var(--color-white);
  transition: all var(--transition-fast);
}
.nav.scrolled .nav__toggle span {
  background-color: var(--color-charcoal);
}
.nav__mobile-menu {
  position: fixed;
  inset: 0;
  background-color: var(--color-charcoal);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}
.nav__mobile-menu.is-open {
  transform: translateX(0);
}
.nav__mobile-menu .nav__links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
.nav__mobile-menu .nav__link {
  font-size: 1.25rem;
  color: var(--color-white);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 999;
}
@media (min-width: 768px) {
  .whatsapp-float {
    bottom: 2rem;
    right: 2rem;
  }
}
.whatsapp-float__btn {
  width: 3.5rem;
  height: 3.5rem;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  border: none;
}
.whatsapp-float__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.6);
}
.whatsapp-float__btn svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--color-white);
}
.whatsapp-float__tooltip {
  display: none;
}
@media (min-width: 768px) {
  .whatsapp-float__tooltip {
    display: block;
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-charcoal);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
  }
  .whatsapp-float__btn:hover + .whatsapp-float__tooltip, 
  .whatsapp-float:hover .whatsapp-float__tooltip {
    opacity: 1;
  }
}

/* Pain points */
.pain-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
}
.pain-point__icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.pain-point__text {
  font-size: 1.0625rem;
  color: var(--color-text-light);
  line-height: var(--leading-normal);
}

/* Animations — Progressive Enhancement
   Elements are VISIBLE by default.
   Only hidden when JS adds .js-ready to <html> */
.js-ready .animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.fade-in.is-visible {
  opacity: 1;
}

.js-ready .slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.js-ready .slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.slide-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.js-ready .stagger-1 { transition-delay: 0.1s; }
.js-ready .stagger-2 { transition-delay: 0.2s; }
.js-ready .stagger-3 { transition-delay: 0.3s; }
.js-ready .stagger-4 { transition-delay: 0.4s; }
.js-ready .stagger-5 { transition-delay: 0.5s; }
.js-ready .stagger-6 { transition-delay: 0.6s; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseLogo {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.splash-screen__logo {
  max-width: 250px;
  max-height: 250px;
  width: auto;
  object-fit: contain;
  animation: pulseLogo 1.5s ease infinite alternate;
}
.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

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

@keyframes countUp {
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mobile Navigation Links */
.nav__mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
.nav__mobile-link {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: var(--font-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition-fast);
  cursor: pointer;
}
.nav__mobile-link:hover {
  color: var(--color-white);
}
.nav__mobile-link.btn {
  margin-top: 1rem;
}

/* Required asterisk */
.required {
  color: #E53E3E;
  font-weight: var(--font-bold);
}

/* Section headers */
.products__header,
.how-it-works__header,
.why-us__header,
.requirement-form__header,
.client-trust__content {
  text-align: center;
  margin-bottom: 3rem;
}
.products__header h2,
.how-it-works__header h2,
.why-us__header h2,
.requirement-form__header h2,
.client-trust__content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--color-charcoal);
  margin-top: 0.75rem;
}
.products__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--color-charcoal);
}
.about__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--color-charcoal);
  margin-bottom: 1rem;
}

/* Requirement form subtitle */
.requirement-form__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* Form actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-gray-100);
}
.form-actions .btn:only-child {
  margin-left: auto;
}

/* File upload details */
.form-file__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.form-file__text {
  font-size: 0.9375rem;
  color: var(--color-text-light);
}
.form-file__link {
  color: var(--color-emerald);
  font-weight: var(--font-semibold);
  cursor: pointer;
}
.form-file__hint {
  font-size: 0.8125rem;
  color: var(--color-gray-400);
}
.form-file__preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.form-file__name {
  font-size: 0.875rem;
  color: var(--color-text);
  font-weight: var(--font-medium);
}
.form-file__remove {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--color-gray-400);
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--transition-fast);
}
.form-file__remove:hover {
  color: #E53E3E;
}
.form-file.drag-active {
  border-color: var(--color-emerald);
  background-color: rgba(11,107,58,0.04);
}

/* Confirmation screen extras */
.form-confirmation__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-charcoal);
  margin-bottom: 1rem;
}
.form-confirmation__text {
  font-size: 1.0625rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.form-confirmation__id {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.form-confirmation__id-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}
.form-confirmation__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Client separator */
.client-separator {
  color: var(--color-gold);
  font-size: 1.5rem;
  user-select: none;
}
/* Remove the pseudo-element separator since HTML has explicit separators */
.client-name::after {
  display: none;
}

/* Product card CTA variant */
.product-card--cta {
  display: flex;
  align-items: flex-end;
}
.product-card--cta .product-card__overlay {
  opacity: 1;
}

/* WhatsApp pulse animation */
@keyframes whatsapp-pulse {
  0% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,0.7); }
  100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
}
.whatsapp-float__btn.pulse-once {
  animation: whatsapp-pulse 1.5s ease-in-out 3;
}
