/* geastoolhill — Herbalon Botanical Theme */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Playfair+Display:ital,wght@0,600;0,800;1,600&display=swap');

:root {
  --color-offer-dark: #0b1d0f;
  --color-offer-deep: #132e18;
  --color-offer-forest: #1c4524;
  --color-offer-leaf: #276232;
  --color-offer-bright: #3ea853;
  --color-offer-mint: #86efac;
  --color-root-gold: #d97706;
  --color-root-amber: #b45309;
  --color-root-bark: #451a03;
  --color-root-sand: #fef3c7;
  --color-card-bg: #112615;
  --color-card-border: #27522d;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-offer-dark);
  color: #e2e8f0;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Ambient Glow & Botanical Shading */
.ambient-bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 15%, rgba(46, 117, 60, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 85% 40%, rgba(30, 80, 42, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(62, 168, 83, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #09170c 0%, #112716 40%, #0d1e11 75%, #071309 100%);
  pointer-events: none;
  z-index: -2;
}

/* Grasshopper Background Watermarks (Кузнечик на заднем фоне) */
.grasshopper-bg-left {
  position: fixed;
  top: 18%;
  left: -80px;
  width: 480px;
  height: 380px;
  background-image: url('../images/grasshopper.svg');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.085;
  pointer-events: none;
  z-index: -1;
  transform: rotate(-12deg);
  filter: drop-shadow(0 0 25px rgba(74, 222, 128, 0.3));
  transition: opacity 0.5s ease;
}

.grasshopper-bg-right {
  position: fixed;
  bottom: 12%;
  right: -100px;
  width: 550px;
  height: 420px;
  background-image: url('../images/grasshopper.svg');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
  transform: scaleX(-1) rotate(10deg);
  filter: drop-shadow(0 0 30px rgba(74, 222, 128, 0.35));
}

@media (max-width: 768px) {
  .grasshopper-bg-left {
    width: 300px;
    height: 240px;
    left: -60px;
    top: 25%;
    opacity: 0.06;
  }
  .grasshopper-bg-right {
    width: 320px;
    height: 260px;
    right: -80px;
    bottom: 8%;
    opacity: 0.055;
  }
}

/* Tree Root Pattern Accents (Стиль корень дерева) */
.root-border-divider {
  position: relative;
  height: 24px;
  width: 100%;
  background: radial-gradient(ellipse at center, rgba(217, 119, 6, 0.3) 0%, rgba(34, 197, 94, 0.1) 50%, transparent 75%);
  margin: 2rem 0;
}

/* Custom Tree Root Button Format (Стиль корень дерева) */
.btn-root-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #1f4f25 0%, #15803d 40%, #166534 80%, #14532d 100%);
  color: #ffffff;
  border: 2px solid #ca8a04;
  border-radius: 9999px;
  padding: 1.1rem 2.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 
    0 4px 14px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(34, 197, 94, 0.35),
    inset 0 1px 0 rgba(254, 240, 138, 0.35),
    inset 0 -2px 0 rgba(146, 64, 14, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
}

.btn-root-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: 0.6s;
}

.btn-root-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #286330 0%, #16a34a 40%, #15803d 80%, #166534 100%);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(74, 222, 128, 0.5),
    inset 0 1px 0 rgba(254, 240, 138, 0.6);
  border-color: #facc15;
}

.btn-root-primary:hover::before {
  left: 100%;
}

.btn-root-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(19, 46, 24, 0.85);
  color: #86efac;
  border: 1.5px solid #22c55e;
  border-radius: 9999px;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.btn-root-secondary:hover {
  background: rgba(34, 197, 94, 0.25);
  color: #ffffff;
  border-color: #4ade80;
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.35);
}

/* Root icon badge */
.root-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: radial-gradient(circle, #78350f 0%, #451a03 100%);
  border: 1.5px solid #f59e0b;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Botanical Offer Glass Cards */
.offer-glass-card {
  background: linear-gradient(160deg, rgba(23, 56, 30, 0.85) 0%, rgba(14, 34, 18, 0.95) 100%);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 1.5rem;
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.offer-glass-card-highlight {
  background: linear-gradient(160deg, rgba(28, 69, 36, 0.9) 0%, rgba(16, 40, 21, 0.98) 100%);
  border: 2px solid rgba(234, 179, 8, 0.45);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(34, 197, 94, 0.2),
    inset 0 1px 1px rgba(254, 240, 138, 0.3);
}

/* Root Style Wood Border Accent */
.root-frame {
  position: relative;
}

.root-frame::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ca8a04, #22c55e, #ca8a04, transparent);
  border-radius: 2px;
}

/* Typography Enhancements */
.font-serif-title {
  font-family: 'Playfair Display', Georgia, serif;
}

.title-gradient {
  background: linear-gradient(135deg, #ffffff 20%, #bbf7d0 60%, #86efac 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-gold-gradient {
  background: linear-gradient(135deg, #fef08a 0%, #facc15 50%, #ca8a04 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Form Styles Compliant with track.js */
.order-input-field {
  width: 100%;
  padding: 0.95rem 1.25rem;
  background-color: rgba(9, 23, 12, 0.9);
  border: 1.5px solid rgba(74, 222, 128, 0.3);
  border-radius: 0.85rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: all 0.25s ease;
}

.order-input-field:focus {
  border-color: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
  background-color: rgba(13, 33, 17, 0.95);
}

.order-input-field::placeholder {
  color: #94a3b8;
  font-size: 0.95rem;
}

.order-input-field.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

.order-input-field.is-valid {
  border-color: #22c55e !important;
}

.input-feedback {
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 0.35rem;
  display: none;
}

.input-feedback.show {
  display: block;
}

/* Floating Grasshopper Badge */
.grasshopper-agility-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(22, 101, 52, 0.6);
  border: 1px solid rgba(134, 239, 172, 0.4);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #bbf7d0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Pulse Glow Animation */
@keyframes rootPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.7), 0 0 10px rgba(234, 179, 8, 0.5);
  }
}

.glow-animation {
  animation: rootPulse 3s infinite ease-in-out;
}

/* Modal Overlay & Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 5, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: #112615;
  border: 1.5px solid #27582e;
  border-radius: 1.25rem;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  color: #cbd5e1;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.75rem;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #09170c;
}
::-webkit-scrollbar-thumb {
  background: #27582e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3ea853;
}
