/* ==========================================================================
   Bhawal Engineers & Construction Ltd. (BECL) - Equipment & Machinery Fleet Stylesheet
   Design Reference: equipment page/equipment_page_reference.jpg
   Aesthetic: Heavy Engineering & Industrial Precision Blueprint Architecture
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL CANVAS & BLUEPRINT GRID TEXTURE
   -------------------------------------------------------------------------- */
.equipment-page-body {
  background-color: #F6F6F8;
  color: #1A1F2C;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  position: relative;
  overflow-x: hidden;
}

/* Subtle architectural blueprint grid overlay */
.blueprint-grid-canvas {
  position: relative;
  width: 100%;
  background-color: #F6F6F8;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center top;
}

.equipment-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

/* --------------------------------------------------------------------------
   2. HERO SECTION (MATCHING REFERENCE IMAGE TOP PORTION)
   -------------------------------------------------------------------------- */
.eq-hero-section {
  position: relative;
  padding: 60px 0 40px;
  overflow: visible;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

/* Thin vertical and horizontal guide lines from reference */
.eq-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  border-left: 1px dashed rgba(0, 0, 0, 0.07);
  pointer-events: none;
}

.eq-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  align-items: center;
  gap: 24px;
  position: relative;
  min-height: 520px;
}

/* --- Left Column: Primary Headline & Mobilization CTA --- */
.eq-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 4;
}

.eq-hero-title-main {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(44px, 5.2vw, 74px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #313742;
  margin-bottom: 22px;
}

.eq-hero-title-main span {
  display: block;
}

.eq-hero-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: #5A6270;
  max-width: 360px;
  margin-bottom: 28px;
}

.eq-hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  background: #EAA928;
  background: linear-gradient(135deg, #F0B236 0%, #EAA928 60%, #D49317 100%);
  color: #1A140C;
  font-family: var(--font-heading, sans-serif);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(234, 169, 40, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  margin-bottom: 30px;
}

.eq-hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(234, 169, 40, 0.5);
  background: linear-gradient(135deg, #F5BA42 0%, #F0B236 60%, #EAA928 100%);
}

.eq-hero-rapid-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rapid-val {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #2D333F;
  letter-spacing: -0.02em;
}

.rapid-chevrons {
  display: inline-flex;
  align-items: center;
  color: #EAA928;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -2px;
}

.rapid-txt {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  color: #636C7C;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* --- Center Column: 3D Excavator Centerpiece & Floating Callout --- */
.eq-hero-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.eq-excavator-visual-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eq-hero-excavator-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.22));
  transform: translateY(10px);
  z-index: 2;
  transition: transform 0.4s ease;
}

.eq-hero-excavator-img:hover {
  transform: translateY(6px) scale(1.02);
}

/* Floating Callout Speech Bubble (Left of Excavator) */
.eq-callout-speech-bubble {
  position: absolute;
  top: 38%;
  left: -20px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  padding: 16px 20px;
  max-width: 260px;
  z-index: 5;
  animation: floatCallout 4s ease-in-out infinite alternate;
}

@keyframes floatCallout {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.callout-bubble-txt {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #383F4C;
}

/* --- Right Column: Secondary Headline, Pointer & Stats --- */
.eq-hero-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  text-align: right;
  min-height: 440px;
  z-index: 4;
}

.eq-hero-kicker {
  font-size: 13px;
  font-weight: 600;
  color: #717987;
  letter-spacing: 0.02em;
}

.eq-hero-kicker strong {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #2D333F;
  margin-left: 4px;
}

.eq-hero-title-right {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(48px, 5.8vw, 84px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #313742;
  margin-top: 15px;
}

.eq-hero-title-right span {
  display: block;
}

/* Technical Pointer Line */
.eq-pointer-callout {
  margin-top: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.pointer-line-svg {
  width: 140px;
  height: 36px;
  stroke: #A8AFBB;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  margin-bottom: 6px;
}

.pointer-txt {
  font-size: 13px;
  font-weight: 600;
  color: #555D6C;
  max-width: 220px;
  line-height: 1.35;
}

/* Bottom Right Fleet Stat */
.eq-hero-stat-badge {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 24px;
}

.stat-number {
  font-family: 'Oswald', sans-serif;
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  color: #2D333F;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #636C7C;
  text-transform: uppercase;
  text-align: left;
  max-width: 130px;
}

/* --------------------------------------------------------------------------
   3. SECTION 2: MID HEADLINE BANNER (MATCHING REFERENCE)
   -------------------------------------------------------------------------- */
.eq-mid-banner-section {
  padding: 64px 0 44px;
  text-align: center;
  position: relative;
}

.eq-mid-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #2F3540;
  margin-bottom: 14px;
}

.eq-mid-sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: #687180;
  max-width: 660px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   4. SECTION 3: 6 CATEGORY CARDS GRID (MATCHING REFERENCE 3x2 GRID)
   -------------------------------------------------------------------------- */
.eq-cards-section {
  padding: 0 0 80px;
}

.eq-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.eq-cat-card {
  background: #FFFFFF;
  border: 1px solid #EBECEF;
  border-radius: 18px;
  padding: 32px 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.035);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.eq-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
  border-color: rgba(186, 137, 52, 0.5);
}

.eq-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eq-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #282E39;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.eq-card-img-wrap {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0 16px;
  position: relative;
}

.eq-card-img {
  max-width: 90%;
  max-height: 145px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
  transition: transform 0.35s ease;
}

.eq-cat-card:hover .eq-card-img {
  transform: scale(1.06);
}

.eq-card-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: auto;
}

.eq-card-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: #636C7C;
  min-height: 42px;
  margin-bottom: 20px;
}

.eq-card-btn {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  background: #EBECEF;
  color: #373D47;
  font-family: var(--font-heading, sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.eq-card-btn:hover {
  background: #BA8934;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(186, 137, 52, 0.35);
  transform: translateY(-1px);
}

.eq-card-btn .btn-arrow {
  font-size: 15px;
  transition: transform 0.2s ease;
}

.eq-card-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* --- Real Site Photo Card Enhancements --- */
.eq-card-photo-wrap {
  width: 100%;
  height: 160px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin: 14px 0 16px;
  background: #EAEBF0;
}

.eq-card-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.eq-cat-card:hover .eq-card-photo-img {
  transform: scale(1.06);
}

.eq-card-badge-owned {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(18, 22, 30, 0.85);
  color: #DEB853;
  border: 1px solid rgba(222, 184, 83, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eq-card-metric-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: #BA8934;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

/* --- Hidden Cards & Show More Behavior --- */
.eq-card-hidden {
  display: none;
}

.cards-expanded .eq-card-hidden {
  display: flex;
  animation: eqCardFadeIn 0.45s ease forwards;
}

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

.eq-show-more-wrap {
  text-align: center;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.eq-show-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1.5px solid #BA8934;
  color: #1A1F2C;
  font-family: var(--font-heading, sans-serif);
  font-size: 14.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 15px 40px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(186, 137, 52, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.eq-show-more-btn:hover {
  background: #BA8934;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(186, 137, 52, 0.35);
  transform: translateY(-2px);
}

.eq-show-more-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.eq-show-more-btn.is-active .eq-show-more-icon {
  transform: rotate(180deg);
}

.eq-show-more-counter {
  font-size: 12.5px;
  color: #717A88;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. SECTION 4: AUDITED MACHINERY SPECIFICATIONS TABLE (COLLAPSIBLE DRAWER)
   -------------------------------------------------------------------------- */
.eq-specs-section {
  padding: 50px 0 90px;
  background: #FFFFFF;
  border-top: 1px solid #EBECEF;
}

.eq-specs-header {
  text-align: center;
  margin-bottom: 40px;
}

.eq-specs-tag {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #BA8934;
  background: rgba(186, 137, 52, 0.12);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.eq-specs-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  text-transform: uppercase;
  color: #2F3540;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.eq-specs-sub {
  font-size: 15px;
  color: #687180;
  max-width: 600px;
  margin: 0 auto;
}

/* Filter pills */
.eq-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.eq-filter-pill {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #E0E2E6;
  background: #F8F9FA;
  color: #4A5260;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.eq-filter-pill:hover,
.eq-filter-pill.active {
  background: #2D333F;
  color: #FFFFFF;
  border-color: #2D333F;
}

/* Table */
.eq-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #E6E8EC;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.025);
}

.eq-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.eq-table th {
  background: #F5F6F8;
  color: #2A303C;
  font-family: var(--font-heading, sans-serif);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 16px 20px;
  border-bottom: 1px solid #E0E2E6;
}

.eq-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #EDEFF2;
  color: #414856;
}

.eq-table tbody tr:hover {
  background: #FAFBFD;
}

.eq-table-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  font-weight: 700;
  background: #E8F5E9;
  color: #2E7D32;
}

.eq-table-btn {
  padding: 6px 14px;
  border-radius: 6px;
  background: #F0F1F4;
  border: 1px solid #D9DCE1;
  color: #2C323E;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.eq-table-btn:hover {
  background: #BA8934;
  color: #FFFFFF;
  border-color: #BA8934;
}

/* --------------------------------------------------------------------------
   6. INTERACTIVE CATEGORY SPECIFICATION MODAL
   -------------------------------------------------------------------------- */
.eq-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 20, 28, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.eq-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.eq-modal-dialog {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 36px 32px 30px;
}

.eq-modal-backdrop.is-open .eq-modal-dialog {
  transform: translateY(0) scale(1);
}

.eq-modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F0F1F4;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #555D6D;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.eq-modal-close-btn:hover {
  background: #E0E2E6;
  color: #1A1F2C;
}

.eq-modal-hero-view {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ECEEF1;
}

.eq-modal-thumb {
  width: 140px;
  height: 110px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
}

.eq-modal-title {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  color: #2B323E;
  margin-bottom: 6px;
}

.eq-modal-meta {
  font-size: 13.5px;
  color: #606877;
}

.eq-modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.eq-spec-box {
  background: #F7F8FA;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #EBECEF;
}

.eq-spec-key {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #788292;
  margin-bottom: 4px;
}

.eq-spec-val {
  font-size: 14px;
  font-weight: 700;
  color: #272D38;
}

.eq-modal-footer-cta {
  display: flex;
  gap: 14px;
}

.eq-modal-rfq-btn {
  flex: 1;
  background: #BA8934;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
}

.eq-modal-rfq-btn:hover {
  background: #A67527;
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .eq-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .eq-hero-center {
    grid-column: 1 / -1;
    order: 2;
  }
  .eq-hero-left {
    order: 1;
  }
  .eq-hero-right {
    order: 3;
    align-items: flex-start;
    text-align: left;
    min-height: auto;
  }
  .pointer-line-svg {
    display: none;
  }
  .eq-pointer-callout {
    align-items: flex-start;
  }
  .eq-hero-stat-badge {
    margin-top: 16px;
  }
  .eq-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .eq-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .eq-hero-right {
    align-items: flex-start;
    text-align: left;
  }
  .eq-callout-speech-bubble {
    position: relative;
    top: auto;
    left: auto;
    margin: 16px auto 0;
    max-width: 100%;
    animation: none;
  }
  .eq-cards-grid {
    grid-template-columns: 1fr;
  }
  .eq-modal-specs-grid {
    grid-template-columns: 1fr;
  }
}
