/* ==========================================================================
   THE PATEL BROTHERS (TPB) — PROCESS FLOW STYLESHEET (process-flow.css)
   Theme: The Patel Brothers (Deep Navy #233C64, Signature Gold #c49a2a)
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. HERO SECTION (The Patel Brothers Architecture)
   -------------------------------------------------------------------------- */
.process-hero {
  position: relative;
  background: linear-gradient(135deg, #091322 0%, #162744 45%, #233C64 100%);
  background-image:
    radial-gradient(rgba(196, 154, 42, 0.15) 1.5px, transparent 1.5px),
    linear-gradient(135deg, #091322 0%, #162744 45%, #233C64 100%);
  background-size: 32px 32px, 100% 100%;
  padding: 170px 0 65px;
  color: #ffffff;
  overflow: hidden;
  border-bottom: 3px solid var(--tpb-gold, #c49a2a);
}

.process-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 154, 42, 0.12) 0%, rgba(35, 60, 100, 0) 70%);
  pointer-events: none;
}

.process-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 60, 100, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.process-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196, 154, 42, 0.14);
  border: 1px solid rgba(196, 154, 42, 0.5);
  color: #f6d166;
  font-family: var(--tpb-font-title, 'Prompt', sans-serif);
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 7px 16px;
  border-radius: 50px;
  margin-top: 6px;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.process-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.process-hero-desc {
  max-width: 860px;
  font-size: 1.05rem;
  color: #d2e1f2;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Hero Metrics Grid */
.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.hero-metric-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid var(--tpb-gold, #c49a2a);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 20px 18px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hero-metric-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(196, 154, 42, 0.6);
  box-shadow: 0 14px 35px rgba(196, 154, 42, 0.25);
}

.hero-metric-val {
  font-family: var(--tpb-font-title, 'Prompt', sans-serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: #f7d568;
  margin-bottom: 6px;
  line-height: 1.15;
}

.hero-metric-lbl {
  font-size: 0.8rem;
  color: #c4d7ec;
  font-weight: 500;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   04. INTERACTIVE PROCESS NAVIGATION STRIP (TABS)
   -------------------------------------------------------------------------- */
.process-nav-strip {
  position: sticky !important;
  top: 86px !important;
  z-index: 950 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--tpb-border, #e2e8f0);
  box-shadow: 0 4px 20px rgba(35, 60, 100, 0.08);
  padding: 12px 0;
}

@media (max-width: 991px) {
  .process-nav-strip {
    top: 72px !important;
  }
}

.process-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.process-tab-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #ffffff;
  color: var(--tpb-navy, #233C64);
  border: 1.5px solid var(--tpb-border, #e2e8f0);
  padding: 12px 14px !important;
  border-radius: 8px;
  font-family: var(--tpb-font-title, 'Prompt', sans-serif);
  font-size: 0.9rem !important;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 8px rgba(35, 60, 100, 0.04);
  width: 100%;
}

.process-tab-btn:hover {
  border-color: var(--tpb-navy, #233C64);
  color: var(--tpb-navy, #233C64);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(35, 60, 100, 0.1);
}

.process-tab-btn .tab-badge {
  background: rgba(35, 60, 100, 0.08);
  color: var(--tpb-navy, #233C64);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  transition: all 0.28s ease;
}

.process-tab-btn.active {
  background: linear-gradient(135deg, var(--tpb-navy-dark, #162744) 0%, var(--tpb-navy, #233C64) 100%);
  color: #ffffff;
  border-color: var(--tpb-gold, #c49a2a);
  box-shadow: 0 8px 24px rgba(35, 60, 100, 0.22);
}

.process-tab-btn.active .tab-badge {
  background: var(--tpb-gold, #c49a2a);
  color: #121212;
}

@media (max-width: 991px) {
  .process-tabs {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* --------------------------------------------------------------------------
   05. MAIN PROCESS CONTENT SECTIONS
   -------------------------------------------------------------------------- */
#main-content {
  position: relative;
  min-height: 600px;
}

.process-section {
  display: none;
  padding: 55px 0 75px;
}

.process-section.active {
  display: block;
  animation: tpbFadeIn 0.35s ease-in-out;
}

@keyframes tpbFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flow-header {
  margin-bottom: 35px;
}

.flow-eyebrow {
  display: inline-block;
  font-family: var(--tpb-font-title, 'Prompt', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tpb-gold, #c49a2a);
  margin-bottom: 6px;
}

.flow-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--tpb-navy-dark, #162744);
  margin-bottom: 12px;
  line-height: 1.25;
}

.flow-subtitle {
  max-width: 860px;
  font-size: 1rem;
  color: var(--tpb-muted, #64748b);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   06. BLUEPRINT DIAGRAM CONTAINER & SVG
   -------------------------------------------------------------------------- */
.flow-diagram-container {
  background: #ffffff;
  border: 1px solid var(--tpb-border, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--tpb-shadow-md, 0 8px 24px rgba(35, 60, 100, 0.08));
  margin-bottom: 45px;
}

.diagram-header-bar {
  background: linear-gradient(135deg, #0e1b2f 0%, #162744 100%);
  color: #ffffff;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 2px solid var(--tpb-gold, #c49a2a);
}

.diagram-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.diagram-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tpb-gold, #c49a2a);
  box-shadow: 0 0 10px var(--tpb-gold, #c49a2a);
  animation: tpbPulse 2s infinite;
}

@keyframes tpbPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.65;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.diagram-title {
  font-family: var(--tpb-font-title, 'Prompt', sans-serif);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.diagram-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.775rem;
  color: #cad8ea;
  font-weight: 500;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

/* SVG Viewport */
.flow-svg-viewport {
  background: #f8fafc;
  background-image:
    linear-gradient(to right, rgba(35, 60, 100, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(35, 60, 100, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 30px 20px;
  overflow-x: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.flow-svg {
  width: 100%;
  max-width: 980px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(35, 60, 100, 0.08));
}

/* --------------------------------------------------------------------------
   07. STAGE-BY-STAGE PIPELINE CARDS
   -------------------------------------------------------------------------- */
.flow-pipeline-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--tpb-navy-dark, #162744);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pipeline-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 45px;
}

.pipeline-card {
  background: #ffffff;
  border: 1px solid var(--tpb-border, #e2e8f0);
  border-top: 3px solid var(--tpb-navy, #233C64);
  border-radius: 10px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--tpb-shadow-sm, 0 2px 8px rgba(35, 60, 100, 0.06));
}

.pipeline-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--tpb-gold, #c49a2a);
  box-shadow: 0 14px 32px rgba(35, 60, 100, 0.12);
}

.pipeline-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pipeline-step-badge {
  background: var(--tpb-navy, #233C64);
  color: #ffffff;
  font-family: var(--tpb-font-title, 'Prompt', sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
}

.pipeline-type-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.pipeline-type-tag.type-primary {
  background: rgba(35, 60, 100, 0.08);
  color: var(--tpb-navy, #233C64);
}

.pipeline-type-tag.type-chemical {
  background: #e0f2fe;
  color: #0369a1;
}

.pipeline-type-tag.type-recycle {
  background: var(--tpb-gold-light, #fef8e7);
  color: #92400e;
  border: 1px solid var(--tpb-gold-border, rgba(196, 154, 42, 0.4));
}

.pipeline-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tpb-charcoal, #121212);
  margin-bottom: 10px;
  line-height: 1.35;
}

.pipeline-card-desc {
  font-size: 0.875rem;
  color: var(--tpb-body, #4f4747);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.pipeline-metrics-wrap {
  background: #f8fafc;
  border: 1px solid var(--tpb-border-light, #edf2f7);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 4px 0;
}

.metric-row:not(:last-child) {
  border-bottom: 1px dashed var(--tpb-border, #e2e8f0);
}

.metric-row-lbl {
  color: var(--tpb-muted, #64748b);
  font-weight: 500;
}

.metric-row-val {
  color: var(--tpb-navy, #233C64);
  font-weight: 700;
  font-family: var(--tpb-font-title, 'Prompt', sans-serif);
}

.pipeline-card-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pipeline-prod-btn {
  display: inline-block;
  font-family: var(--tpb-font-title, 'Prompt', sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tpb-navy, #233C64);
  background: rgba(35, 60, 100, 0.05);
  border: 1px solid rgba(35, 60, 100, 0.2);
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none !important;
  text-align: center;
  transition: all 0.25s ease;
}

.pipeline-prod-btn:hover {
  background: var(--tpb-navy, #233C64);
  color: #ffffff !important;
  border-color: var(--tpb-navy, #233C64);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(35, 60, 100, 0.2);
}

/* --------------------------------------------------------------------------
   08. MASS BALANCE TABLES
   -------------------------------------------------------------------------- */
.balance-table-wrap {
  background: #ffffff;
  border: 1px solid var(--tpb-border, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--tpb-shadow-md, 0 8px 24px rgba(35, 60, 100, 0.08));
}

.balance-table-header {
  background: linear-gradient(135deg, var(--tpb-navy-dark, #162744) 0%, var(--tpb-navy, #233C64) 100%);
  color: #ffffff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 2px solid var(--tpb-gold, #c49a2a);
}

.balance-table-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.balance-table-sub {
  font-size: 0.8rem;
  color: #f7d568;
  font-weight: 500;
}

.balance-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin: 0;
}

.balance-table th {
  background: #f1f5f9;
  color: var(--tpb-navy-dark, #162744);
  font-family: var(--tpb-font-title, 'Prompt', sans-serif);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 20px;
  border-bottom: 1px solid var(--tpb-border, #e2e8f0);
}

.balance-table td {
  padding: 14px 20px;
  font-size: 0.875rem;
  color: var(--tpb-charcoal, #121212);
  border-bottom: 1px solid var(--tpb-border-light, #edf2f7);
  vertical-align: middle;
}

.balance-table tbody tr:nth-child(even) {
  background-color: #fafbfd;
}

.balance-table tbody tr:hover {
  background-color: rgba(35, 60, 100, 0.03);
}

.balance-tag-in,
.balance-tag-out {
  display: inline-block;
  font-family: var(--tpb-font-title, 'Prompt', sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.balance-tag-in {
  background: var(--tpb-navy, #233C64);
  color: #ffffff;
}

.balance-tag-out {
  background: var(--tpb-gold, #c49a2a);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   09. SITE FOOTER (The Patel Brothers Theme)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--tpb-navy-deep, #0e1b2f);
  color: #cad8ea;
  border-top: 3px solid var(--tpb-gold, #c49a2a);
  padding-top: 60px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr;
  gap: 36px;
  padding-bottom: 50px;
}

.footer-logo {
  margin-bottom: 18px;
}

.footer-logo img {
  height: 48px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.875rem;
  color: #9cb1cb;
  line-height: 1.65;
  margin-bottom: 20px;
}

.footer-cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-cert-badge {
  background: rgba(35, 60, 100, 0.4);
  border: 1px solid rgba(196, 154, 42, 0.45);
  color: #f7d568;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.footer-col-title {
  font-family: var(--tpb-font-title, 'Prompt', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tpb-gold, #c49a2a);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

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

.footer-links li {
  margin-bottom: 9px;
}

.footer-link {
  color: #cad8ea;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--tpb-gold, #c49a2a);
  transform: translateX(3px);
}

.footer-contact-item {
  font-size: 0.85rem;
  color: #cad8ea;
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-contact-item strong {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.25);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.825rem;
  color: #8fa5c2;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
}

.footer-bottom-link {
  font-size: 0.825rem;
  color: #8fa5c2;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-link:hover {
  color: var(--tpb-gold, #c49a2a);
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .pipeline-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .hero-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-hero-title {
    font-size: 2.15rem;
  }
}

@media (max-width: 768px) {
  .process-hero {
    padding: 45px 0 40px;
  }

  .process-hero-title {
    font-size: 1.85rem;
  }

  .hero-metrics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .process-tabs {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100%;
  }

  .process-tab-btn {
    width: 100%;
    justify-content: space-between;
  }

  .pipeline-cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .balance-table th,
  .balance-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}