/* ==========================================================================
   JALO GROUP - Page-Specific Layouts & Hero Sections
   Solid enterprise styling. NO GRADIENTS. ZERO EMOJIS.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Section (Home & Inner Pages)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background-color: var(--brand-slate-dark);
  color: #FFFFFF;
  overflow: hidden;
  border-bottom: 2px solid var(--brand-orange);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.42) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: rgba(11, 26, 42, 0.72); /* Solid dark navy overlay */
}

.hero-container {
  position: relative;
  z-index: 3;
  padding-top: 4rem;
  padding-bottom: 4.5rem;
}

.hero-content {
  max-width: 820px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  background-color: var(--brand-orange);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.35rem, 4.5vw + 1rem, 3.85rem);
  font-weight: 800;
  line-height: 1.18;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--brand-orange);
}

.hero-desc {
  font-size: clamp(1.05rem, 1.2vw + 0.5rem, 1.3rem);
  color: #E2E8F0;
  line-height: 1.65;
  margin-bottom: 2.25rem;
  max-width: 740px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
  }
  .hero-container {
    padding-top: 2.75rem;
    padding-bottom: 3.25rem;
  }
  .hero-tag {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1rem;
  }
  .hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.45rem);
    line-height: 1.25;
    margin-bottom: 1rem;
  }
  .hero-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* Page Header (Inner Pages Hero) */
.page-header {
  position: relative;
  background-color: var(--brand-slate-dark);
  color: #FFFFFF;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 2px solid var(--brand-orange);
  overflow: hidden;
}

.page-header-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-header-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: rgba(11, 26, 42, 0.75);
}

.page-header-container {
  position: relative;
  z-index: 3;
}

.page-header-title {
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem);
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.page-header-subtitle {
  font-size: 1.15rem;
  color: #CBD5E1;
  max-width: 720px;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #94A3B8;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: #CBD5E1;
}

.breadcrumb a:hover {
  color: var(--brand-orange);
}

.breadcrumb i {
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   About Page Components
   -------------------------------------------------------------------------- */
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.story-img-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
}

.story-badge-stat {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: var(--brand-orange);
  color: #FFFFFF;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

[dir="rtl"] .story-badge-stat {
  right: auto;
  left: 1.5rem;
}

.story-badge-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.story-badge-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   HSE & Quality Dashboard
   -------------------------------------------------------------------------- */
.hse-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #15803D;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.goal-zero-banner {
  background-color: var(--brand-navy-dark);
  color: #FFFFFF;
  padding: 3rem;
  border-radius: var(--radius-lg);
  border-left: 6px solid var(--brand-orange);
  margin-bottom: 3.5rem;
}

[dir="rtl"] .goal-zero-banner {
  border-left: none;
  border-right: 6px solid var(--brand-orange);
}

.hse-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* --------------------------------------------------------------------------
   Certifications & Compliance
   -------------------------------------------------------------------------- */
.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  transition: all var(--transition-fast);
}

.cert-card:hover {
  border-color: var(--brand-orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cert-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: rgba(11, 79, 138, 0.08);
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

:root[data-theme="dark"] .cert-icon {
  background-color: rgba(255, 122, 0, 0.12);
  color: var(--brand-orange);
}

.cert-card:hover .cert-icon {
  background-color: var(--brand-orange);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Contact Page Layout
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
}

.contact-info-card {
  background-color: var(--brand-slate-dark);
  color: #FFFFFF;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 122, 0, 0.15);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-info-text h5 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-info-text p,
.contact-info-text a {
  color: #CBD5E1;
  font-size: 0.92rem;
}

.contact-info-text a:hover {
  color: var(--brand-orange);
}

.map-placeholder-box {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

.map-placeholder-box i {
  font-size: 2.5rem;
  color: var(--brand-orange);
  margin-bottom: 1rem;
}

.story-grid > *, .contact-grid > * {
  min-width: 0;
}

@media (max-width: 1024px) {
  .story-grid, .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .hse-pillars-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .contact-info-card {
    padding: 1.5rem;
  }
  .contact-info-item {
    gap: 0.85rem;
    margin-bottom: 1.25rem;
  }
  .contact-info-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}
