/* ══════════════════════════════════════════════════════════════════
   SR_AGRO PUBLIC DESIGN SYSTEM - CATTLE FEED & DAIRY NUTRITION THEME
   Authentic Indian Agrovet & Livestock Feed Aesthetic
   Primary: Organic Dairy Farm Green (#155e37)
   Harvest Amber & Grain Gold: (#d97706, #f59e0b)
   Warm Milk & Paper Cream Body: (#fdfbf7, #f7f3ec)
   ══════════════════════════════════════════════════════════════════ */

:root {
  --pub-primary: #155e37;
  --pub-primary-hover: #0e4426;
  --pub-primary-dark: #082d18;
  --pub-primary-light: #ecfdf3;
  --pub-primary-gradient: linear-gradient(135deg, #09331b 0%, #155e37 55%, #1e7e4a 100%);
  
  --pub-amber: #d97706;
  --pub-amber-dark: #b45309;
  --pub-gold: #f59e0b;
  --pub-gold-light: #fef3c7;
  --pub-secondary: #f59e0b;
  --pub-secondary-hover: #d97706;
  --pub-secondary-text: #78350f;
  
  --pub-feed-brown: #78350f;
  --pub-feed-tan: #854d0e;
  --pub-feed-bg: #fffbeb;

  --pub-bg-body: #faf7f2;
  --pub-bg-surface: #ffffff;
  --pub-bg-warm: #f4eee2;
  --pub-border: #e7dfd1;
  --pub-border-subtle: #f1ebd8;
  
  --pub-text-main: #1c1917;
  --pub-text-muted: #57534e;
  --pub-text-light: #78716c;

  --pub-shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.05);
  --pub-shadow-md: 0 6px 20px -2px rgba(21, 94, 55, 0.09);
  --pub-shadow-lg: 0 16px 36px -4px rgba(21, 94, 55, 0.14);
  --pub-shadow-glow: 0 8px 30px rgba(245, 158, 11, 0.35);

  --pub-radius-sm: 8px;
  --pub-radius-md: 14px;
  --pub-radius-lg: 20px;
  --pub-radius-xl: 28px;
  --pub-radius-pill: 9999px;
  
  --pub-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Typography & Base Elements ──────────────────────────────── */
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--pub-text-main);
  background-color: var(--pub-bg-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--pub-text-main);
}

/* ─── Top Notification Bar ───────────────────────────────────── */
.pub-topbar {
  background: linear-gradient(90deg, #052620 0%, #08382e 100%);
  color: #e2e8f0;
  font-size: 0.8125rem;
  padding: 6px 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.01em;
}

.pub-topbar-badge {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 3px 9px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pub-topbar-text {
  font-weight: 500;
  color: #d1fae5;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.pub-topbar-link {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  transition: var(--pub-transition);
}

.pub-topbar-link:hover {
  color: #34d399;
}

.pub-topbar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.16);
  display: inline-block;
  vertical-align: middle;
}

.pub-topbar-whatsapp {
  color: #a7f3d0 !important;
  font-weight: 600;
  font-size: 0.775rem;
  display: inline-flex;
  align-items: center;
  padding: 2.5px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  text-decoration: none;
  transition: all 0.2s ease;
}

.pub-topbar-whatsapp:hover {
  background: rgba(16, 185, 129, 0.24);
  color: #ffffff !important;
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

/* ─── Public Sticky Header & Navbar ───────────────────────────── */
.pub-navbar-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(13, 92, 77, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: var(--pub-transition);
}

.pub-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.pub-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pub-primary) 0%, #157347 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pub-secondary);
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(13, 92, 77, 0.25);
  transition: var(--pub-transition);
}

.pub-brand:hover .pub-brand-icon {
  transform: rotate(5deg) scale(1.05);
}

.pub-brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(13, 92, 77, 0.2);
  transition: transform 0.25s ease;
}

.pub-brand:hover .pub-brand-logo-img {
  transform: rotate(5deg) scale(1.06);
}

.pub-brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--pub-primary);
  letter-spacing: -0.5px;
}

.pub-brand-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pub-text-muted);
  text-transform: uppercase;
}

.pub-nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155 !important;
  padding: 0.55rem 0.85rem !important;
  border-radius: var(--pub-radius-sm);
  transition: var(--pub-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.pub-nav-link:hover {
  color: var(--pub-primary) !important;
  background-color: var(--pub-primary-light);
}

.pub-nav-link.active {
  color: var(--pub-primary) !important;
  font-weight: 700;
  background-color: var(--pub-primary-light);
}

.pub-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--pub-primary);
  border-radius: 2px;
}

/* ─── Hero Sections (Cattle Feed Agrovet Theme) ───────────────── */
.pub-hero {
  background: radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.22) 0%, transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(217, 119, 6, 0.18) 0%, transparent 40%),
              var(--pub-primary-gradient);
  color: #ffffff;
  padding: 4.25rem 0 3.75rem;
  position: relative;
  overflow: hidden;
}

.pub-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(245, 158, 11, 0.12) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.pub-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(254, 243, 199, 0.16);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fef3c7;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--pub-radius-pill);
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}

.pub-hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pub-gold);
  box-shadow: 0 0 10px var(--pub-gold);
}

.pub-hero-title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1.15rem;
}

.pub-hero-subtitle {
  font-size: 1.12rem;
  color: #f7fee7;
  line-height: 1.68;
  max-width: 640px;
  margin-bottom: 1.85rem;
  opacity: 0.95;
}

.pub-hero-stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(254, 243, 199, 0.2);
  border-radius: var(--pub-radius-md);
  padding: 1rem 1.25rem;
  transition: var(--pub-transition);
}

.pub-hero-stat-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-3px);
}

/* ─── Modern Interactive Calculator Card ─────────────────────── */
.pub-calc-card {
  background: #ffffff;
  color: var(--pub-text-main);
  border-radius: var(--pub-radius-xl);
  padding: 2.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 2;
}

.pub-preset-btn {
  border: 1.5px solid var(--pub-border);
  background: #ffffff;
  color: #334155;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: var(--pub-radius-pill);
  transition: var(--pub-transition);
}

.pub-preset-btn:hover, .pub-preset-btn.active {
  background: var(--pub-primary);
  border-color: var(--pub-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 92, 77, 0.25);
}

.pub-calc-highlight {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: var(--pub-radius-lg);
  padding: 1.5rem;
}

/* ─── Clean Feature Cards ─────────────────────────────────────── */
.pub-feature-card {
  background: #ffffff;
  border-radius: var(--pub-radius-lg);
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--pub-border);
  box-shadow: var(--pub-shadow-sm);
  transition: var(--pub-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pub-feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--pub-secondary);
  box-shadow: var(--pub-shadow-lg);
}

.pub-feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 1.25rem;
}

/* ─── Clean Product Showcase Cards ────────────────────────────── */
.pub-product-card {
  background: #ffffff;
  border-radius: var(--pub-radius-lg);
  border: 1px solid var(--pub-border);
  overflow: hidden;
  transition: var(--pub-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pub-product-card:hover {
  transform: translateY(-5px);
  border-color: var(--pub-primary);
  box-shadow: var(--pub-shadow-lg);
}

.pub-product-img-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pub-spec-badge {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--pub-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ─── Clean Split-Screen Auth & Register Architecture ────────── */
.auth-split-layout {
  min-height: 100vh;
  display: flex;
  background-color: #ffffff;
}

.auth-hero-pane {
  flex: 1.1;
  background: var(--pub-primary-gradient);
  color: #ffffff;
  padding: 4.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-hero-pane::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
  top: -120px;
  right: -120px;
  border-radius: 50%;
  pointer-events: none;
}

.auth-form-pane {
  flex: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2.5rem;
  background-color: var(--pub-bg-body);
}

.auth-form-card {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border-radius: var(--pub-radius-xl);
  padding: 2.75rem 2.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--pub-border);
}

@media (max-width: 991px) {
  .auth-split-layout {
    flex-direction: column;
  }
  .auth-hero-pane {
    display: none;
  }
  .auth-form-pane {
    padding: 2rem 1rem;
  }
  .auth-form-card {
    padding: 2rem 1.25rem;
  }
}

/* ─── Pure White Crisp Form Controls ─────────────────────────── */
.pub-form-label {
  font-weight: 700;
  font-size: 0.86rem;
  color: #1e293b;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pub-input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: var(--pub-radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: var(--pub-transition);
}

.pub-input-addon {
  background-color: #ffffff;
  border: 1.5px solid var(--pub-border);
  border-right: none;
  border-radius: var(--pub-radius-md) 0 0 var(--pub-radius-md);
  color: #64748b;
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: var(--pub-transition);
}

.pub-form-control {
  border: 1.5px solid var(--pub-border);
  border-radius: var(--pub-radius-md);
  padding: 0.72rem 1rem;
  font-size: 0.95rem;
  color: #0f172a;
  background-color: #ffffff;
  transition: var(--pub-transition);
  width: 100%;
}

.pub-input-group .pub-form-control {
  border-left: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.pub-input-group .pub-form-control.has-trailing-btn {
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.pub-input-trailing-btn {
  background-color: #ffffff;
  border: 1.5px solid var(--pub-border);
  border-left: none;
  border-radius: 0 var(--pub-radius-md) var(--pub-radius-md) 0;
  color: #64748b;
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--pub-transition);
}

.pub-form-control:focus {
  border-color: var(--pub-primary);
  box-shadow: 0 0 0 4px rgba(13, 92, 77, 0.12);
  outline: none;
  background-color: #ffffff;
}

.pub-input-group:focus-within .pub-input-addon,
.pub-input-group:focus-within .pub-input-trailing-btn {
  border-color: var(--pub-primary);
}

/* ─── Buttons (Cattle Feed Agrovet Theme) ─────────────────────── */
.pub-btn-primary {
  background: var(--pub-primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--pub-radius-pill);
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(21, 94, 55, 0.28);
  transition: var(--pub-transition);
  text-decoration: none;
}

.pub-btn-primary:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #09331b 0%, #155e37 60%, #1e7e4a 100%);
  box-shadow: 0 8px 24px rgba(21, 94, 55, 0.38);
  transform: translateY(-2px);
}

.pub-btn-accent {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  border: none;
  border-radius: var(--pub-radius-pill);
  font-weight: 800;
  padding: 0.75rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.35);
  transition: var(--pub-transition);
  text-decoration: none;
}

.pub-btn-accent:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45);
  transform: translateY(-2px);
}

.pub-btn-outline {
  background: transparent;
  color: var(--pub-primary);
  border: 1.5px solid var(--pub-primary);
  border-radius: var(--pub-radius-pill);
  font-weight: 700;
  padding: 0.72rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--pub-transition);
  text-decoration: none;
}

.pub-btn-outline:hover {
  background: var(--pub-primary);
  color: #ffffff !important;
  border-color: var(--pub-primary);
}

.pub-feed-tag {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--pub-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ─── Footer (Rich Agro Green Theme) ─────────────────────────── */
.pub-footer {
  background: linear-gradient(180deg, #09331b 0%, #051d0f 100%);
  color: #e2e8f0;
  font-size: 0.92rem;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pub-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--pub-transition);
}

.pub-footer a:hover {
  color: var(--pub-secondary);
  transform: translateX(3px);
  display: inline-block;
}

.pub-footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.pub-footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--pub-secondary);
  border-radius: 2px;
}

/* ─── WhatsApp Floating CTA ───────────────────────────────────── */
.pub-floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1040;
  background: #25d366;
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: var(--pub-transition);
}

.pub-floating-wa:hover {
  transform: scale(1.1) rotate(5deg);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

/* ─── Product Card Visuals & Zoom ────────────────────────────── */
.pub-feed-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pub-feed-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(13, 92, 77, 0.12) !important;
}

.pub-product-zoom {
  transition: transform 0.4s ease;
}

.pub-feed-card:hover .pub-product-zoom {
  transform: scale(1.06);
}
