/* ==========================================
   ARAVAA GLOBAL - SERVICES & PRODUCTS CSS
   ========================================== */

/* Products Hero Section */
.products-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 170px;
  padding-bottom: 110px;
  background-color: var(--dark-navy);
  color: var(--text-white);
  overflow: hidden;
}

.products-hero-bg {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 1;
}

.products-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.45) contrast(1.15);
}

.products-hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(3, 12, 26, 0.7) 0%, rgba(3, 12, 26, 0.85) 60%, rgba(3, 12, 26, 0.98) 100%);
  z-index: 2;
}

.products-hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.products-hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.products-hero-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.2vw + 0.5rem, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  max-width: 780px;
  margin: 0 auto;
}

/* Products Showcase Master Card Container */
.product-detail-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  padding: 40px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 320px 1fr 380px;
  gap: 40px;
  align-items: start;
}

.product-detail-media {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Middle Content Column */
.product-detail-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-title-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.product-badge-icon {
  width: 36px;
  height: 36px;
  background-color: var(--dark-navy);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-badge-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.product-badge-icon svg {
  width: 20px;
  height: 20px;
  color: #FFFFFF;
  stroke: #FFFFFF;
  fill: none;
}

.product-detail-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.85rem;
  color: var(--dark-navy);
  margin-bottom: 0;
  line-height: 1.2;
}

.product-detail-subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary-blue);
  margin-bottom: 16px;
}

.product-detail-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* Applications Section inside Middle Column */
.applications-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark-navy);
  margin-bottom: 16px;
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  width: 100%;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.app-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.app-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.2;
}

/* Specification Table Right Column */
.spec-table-container {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.spec-table-header {
  background-color: var(--dark-navy);
  color: var(--text-white);
  padding: 16px 20px;
  text-align: center;
}

.spec-table-header h4 {
  font-size: 1.05rem;
  color: var(--text-white);
  margin-bottom: 4px;
}

.spec-table-header span {
  font-size: 0.75rem;
  color: var(--text-light-muted);
  display: block;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  font-size: 0.85rem;
  text-align: left;
}

.spec-table th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--dark-navy);
  background-color: #F8FAFC;
  border-bottom: 1px solid var(--border-color);
}

.spec-table td {
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.spec-table tr:nth-child(even) td {
  background-color: #F8FAFC;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table td:last-child {
  font-weight: 600;
  color: var(--dark-navy);
}

.spec-note {
  padding: 12px 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background-color: #F1F5F9;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Services / Products Responsive Layout */
@media (max-width: 1200px) {
  .product-detail-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-detail-media {
    max-height: 350px;
  }
}

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

  .product-detail-card {
    padding: 24px;
  }
}