/* ==========================================================================
   MOBILE-FIRST MAIN STYLESHEET — Procure Mitra
   ========================================================================== */

/* --------------------------------------------------------------------------
   UTILITY CLASSES & GRID
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding-y) 0;
}

.section--alt {
  background-color: var(--color-beige-alt);
}

.section--offwhite {
  background-color: var(--color-offwhite);
}

.section--dark {
  background-color: #1a1a1a;
  color: var(--color-white);
}

.section--emerald {
  background-color: var(--color-emerald);
  color: var(--color-white);
}

.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-charcoal { color: var(--color-charcoal); }
.text-muted { color: var(--color-text-muted); }
.text-white { color: var(--color-white); }
.text-emerald { color: var(--color-emerald); }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-8 { margin-bottom: 4rem; }

/* Grid System — Mobile First = 1 column */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid { gap: 2rem; }
  .grid--2-col-tablet { grid-template-columns: repeat(2, 1fr); }
  .grid--3-col-tablet { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid--2-col-desktop { grid-template-columns: repeat(2, 1fr); gap: 4rem; }
  .grid--3-col-desktop { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .grid--4-col-desktop { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

/* Hide on mobile, show on desktop */
.desktop-only { display: none !important; }
@media (min-width: 1024px) {
  .desktop-only { display: block !important; }
  .desktop-only.flex { display: flex !important; }
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
.heading-label {
  display: block;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .heading-label { font-size: 0.8125rem; }
}

.heading-primary {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw + 0.5rem, 4.5rem);
  line-height: var(--leading-tight);
}

.heading-secondary {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3.5rem);
  line-height: var(--leading-tight);
}

.heading-tertiary {
  font-size: 1.125rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .heading-tertiary { font-size: 1.25rem; }
}

.subtitle {
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  min-height: 44px; /* Touch target */
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

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

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

.btn--gold {
  background-color: var(--color-gold);
  color: var(--color-white);
}
.btn--gold:hover {
  background-color: var(--color-gold-light);
  color: var(--color-white);
}

/* Hover lift only on non-touch devices */
@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(253,251,247,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-gray-200);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

@media (min-width: 768px) {
  .nav { padding: 1rem 0; }
}

.nav__logo img {
  height: 40px;
  width: auto;
}

@media (min-width: 768px) {
  .nav__logo img { height: 55px; }
}

@media (min-width: 1024px) {
  .nav__logo img { height: 70px; }
}

/* Desktop Links */
.nav__links {
  display: none;
  gap: 2rem;
  list-style: none;
}
.nav__links a {
  text-decoration: none;
  color: var(--color-charcoal);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.nav__links a:hover {
  color: var(--color-gold);
}

@media (min-width: 1024px) {
  .nav__links { display: flex; }
}

/* Hamburger Toggle */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 1024px) {
  .nav__toggle { display: none; }
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-charcoal);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* X animation when menu is open */
.nav__toggle.is-active span {
  background-color: var(--color-white);
}
.nav__toggle.is-active span:first-child {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle.is-active span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* For notched phones */
  background-color: var(--color-emerald);
  z-index: 1000;
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: white;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu__links {
  list-style: none;
  text-align: center;
  padding: 0;
  width: 100%;
}

.mobile-menu__links li {
  margin-bottom: 1.25rem;
}

.mobile-menu__links a {
  text-decoration: none;
  color: var(--color-white);
  font-size: 1.35rem;
  font-weight: 500;
  display: inline-block;
  padding: 0.5rem 1rem;
  min-height: 44px;
  transition: opacity 0.2s ease;
}

.mobile-menu__links a:active {
  opacity: 0.7;
}

.mobile-menu__divider {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  margin: 0.75rem auto 1.25rem;
}

/* --------------------------------------------------------------------------
   CARDS & COMPONENTS
   -------------------------------------------------------------------------- */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

/* Hover lift only on non-touch */
@media (hover: hover) {
  .glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
  }
}

/* Product Cards */
.product-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .product-card__img { height: 250px; }
}

.product-card__content {
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .product-card__content { padding: 1.5rem; }
}

.product-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.product-card__header .heading-label {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Feature Cards (Why Us) */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .feature-card {
    flex-direction: row;
    padding: 2.5rem;
  }
}

.feature-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card__icon--emerald {
  background: rgba(45,74,54,0.1);
  color: var(--color-emerald);
}
.feature-card__icon--gold {
  background: rgba(211,84,0,0.1);
  color: var(--color-gold);
}

/* Stats */
.stat-card {
  text-align: center;
}
.stat-card__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-emerald);
  font-weight: 700;
  line-height: 1;
}

/* Step Icons (How It Works) */
.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--color-gold);
}

@media (min-width: 768px) {
  .step-icon { width: 64px; height: 64px; }
}

/* Checklist items (form section) */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist__item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.checklist__icon {
  flex-shrink: 0;
  color: var(--color-gold);
}

.checklist__text {
  font-weight: 600;
  color: var(--color-charcoal);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   FORM
   -------------------------------------------------------------------------- */
.form-card {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .form-card { padding: 2.5rem; }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 0.375rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--color-white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 3px rgba(45, 74, 54, 0.1);
}

.form-input--error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* Select dropdown fix for iOS */
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A756D' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: #1a1a1a;
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

@media (min-width: 768px) {
  .footer { padding: 4rem 0 2rem; }
}

.footer__logo {
  height: 40px;
  background: white;
  padding: 0.5rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.footer__heading {
  color: white;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
  display: inline-block;
  padding: 0.25rem 0;
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* --------------------------------------------------------------------------
   FLOATING WHATSAPP BUTTON
   -------------------------------------------------------------------------- */
.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 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-float__btn svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--color-white);
}

.whatsapp-float__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.6);
}

/* --------------------------------------------------------------------------
   ANIMATIONS
   -------------------------------------------------------------------------- */
.js-ready .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.js-ready .fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .js-ready .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .delay-1, .delay-2, .delay-3 { transition-delay: 0s; }
}

/* --------------------------------------------------------------------------
   MISC
   -------------------------------------------------------------------------- */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(45,74,54,0.05);
  color: var(--color-emerald);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Social link icons */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: rgba(255,255,255,0.2);
}

/* Dark section stat cards */
.section--dark .stat-card__number {
  color: var(--color-gold);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}



/* Smooth scroll offset for sticky header */
html {
  scroll-padding-top: 80px;
}

