/* ===================================================================
   Omsiddham Private Limited - UI Components
   Visual Architecture: Card Panels, Media Containers, Calculators & Steppers
   Color Palette: Mid-Tone Green (#2D5A3F), Deep Forest (#1B3826), Terracotta (#C87D55)
   =================================================================== */

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, #1B3826 0%, #234731 50%, #2D5A3F 100%);
  color: #ffffff;
  padding: 68px 0 56px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--accent-terracotta);
}

.page-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: repeating-linear-gradient(45deg, #ffffff 0, #ffffff 1px, transparent 0, transparent 50%);
  background-size: 16px 16px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #a1b5aa;
  margin-bottom: 16px;
}

.breadcrumb-nav a {
  color: #d6ded9;
}

.breadcrumb-nav a:hover {
  color: var(--accent-terracotta);
}

.breadcrumb-nav .separator {
  color: #56685D;
}

/* Feature Badges & Chips */
.pill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-sand);
  color: var(--primary-dark);
  border: 1px solid var(--border-soft);
}

.pill-chip.accent {
  background: var(--primary-soft);
  color: var(--primary-mid);
  border-color: rgba(45, 90, 63, 0.3);
}

.pill-chip.terracotta {
  background: var(--accent-terracotta-light);
  color: var(--accent-terracotta-dark);
  border-color: rgba(200, 125, 85, 0.4);
}

/* Tab Component */
.tab-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  padding: 12px 22px;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: var(--transition);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-btn:hover {
  color: var(--primary-mid);
  background: rgba(45, 90, 63, 0.04);
}

.tab-btn.active {
  color: var(--primary-mid);
  border-bottom: 3px solid var(--primary-mid);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Accordion Component */
.accordion-item {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item.active {
  border-color: var(--accent-terracotta);
  box-shadow: var(--shadow-md);
}

.accordion-header {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--primary-dark);
  background: #ffffff;
  user-select: none;
}

.accordion-header:hover {
  background: var(--bg-canvas);
}

.accordion-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--accent-terracotta);
}

.accordion-body {
  padding: 0 24px 20px;
  display: none;
  color: var(--text-muted);
  line-height: 1.7;
}

.accordion-item.active .accordion-body {
  display: block;
}

/* Timeline Process Component */
.timeline-stepper {
  position: relative;
  padding-left: 36px;
}

.timeline-stepper::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 15px;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-mid) 0%, var(--accent-terracotta) 100%);
}

.timeline-step {
  position: relative;
  margin-bottom: 32px;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--primary-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary-mid);
  box-shadow: 0 0 0 4px rgba(45, 90, 63, 0.15);
}

.timeline-box {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.timeline-days {
  display: inline-block;
  padding: 3px 12px;
  background: var(--accent-terracotta-light);
  color: var(--accent-terracotta-dark);
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

/* Anatomy of Bio-Concentrate 5-Part Grid */
.anatomy-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.anatomy-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-terracotta);
  box-shadow: var(--shadow-xl);
}

.anatomy-num {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(27, 56, 38, 0.08);
}

.anatomy-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-terracotta);
  margin-bottom: 8px;
}

/* Interactive STP Comparison Simulator */
.stp-sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 30px;
}

.stp-box {
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
}

.stp-box.failing {
  background: #fff8f8;
  border: 2px solid #fecaca;
}

.stp-box.optimized {
  background: #f2f7f4;
  border: 2px solid #8fc5a4;
  box-shadow: 0 10px 30px rgba(45, 90, 63, 0.08);
}

.stp-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.stp-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
}

.stp-metric-val {
  font-weight: 700;
}

/* Infographic Callout Box */
.info-callout {
  background: linear-gradient(135deg, rgba(45, 90, 63, 0.05) 0%, rgba(200, 125, 85, 0.08) 100%);
  border-left: 4px solid var(--primary-mid);
  padding: 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
}

.info-callout.terracotta {
  border-left-color: var(--accent-terracotta);
  background: rgba(200, 125, 85, 0.08);
}

.info-callout h4 {
  margin-bottom: 8px;
  color: var(--primary-dark);
}

/* Testimonials */
.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.quote-mark {
  font-size: 2.8rem;
  line-height: 1;
  color: var(--accent-terracotta);
  opacity: 0.5;
  font-family: var(--font-serif);
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-mid);
  border: 2px solid var(--accent-terracotta);
}

.author-info h5 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Interactive Calculators */
.calc-card {
  background: #ffffff;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xl);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--primary-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #ffffff;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-terracotta);
  box-shadow: 0 0 0 3px rgba(200, 125, 85, 0.15);
}

.calc-result-box {
  background: var(--bg-sand);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
  border: 1px dashed var(--accent-terracotta);
}

.calc-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

.calc-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-mid);
}

/* Comparison Tables */
.comparison-table-wrapper {
  overflow-x: auto;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  background: var(--bg-sand);
  color: var(--primary-dark);
  font-weight: 800;
}

.badge-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-tag.success {
  background: #e2f0e6;
  color: #1b532e;
}

.badge-tag.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-tag.warning {
  background: #faede6;
  color: #a85f38;
}

/* Side-by-Side Images & Crop Gallery */
.side-by-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.side-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #ffffff;
  border: 1px solid var(--border-soft);
}

.side-card-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.side-card-body {
  padding: 20px;
}

.crop-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

.crop-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.crop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-terracotta);
}

.crop-img {
  height: 160px;
  width: 100%;
  object-fit: cover;
}

.crop-info {
  padding: 16px;
}

.alert-message {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-size: 0.95rem;
  display: none;
}

.alert-message.success {
  background: #e2f0e6;
  color: #1b532e;
  border: 1px solid #c2e2cc;
  display: block;
}

@media (max-width: 768px) {
  .side-by-side-grid {
    grid-template-columns: 1fr;
  }
  .stp-sim-grid {
    grid-template-columns: 1fr;
  }
  .calc-result-grid {
    grid-template-columns: 1fr;
  }
}
