/* ==========================================================================
   HOMAGE INFRATECH - ABOUT US PAGE STYLES
   ========================================================================== */

/* --- Brand Narrative --- */
.brand-narrative {
  background-color: var(--bg-white);
}

.narrative-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.narrative-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.narrative-text p:first-of-type {
  font-size: 1.15rem;
  color: var(--primary-dark);
  font-weight: 500;
}

.quote-block {
  border-left: 4px solid var(--accent-color);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--primary-color);
  font-size: 1.15rem;
  font-weight: 500;
}

.narrative-visual {
  position: relative;
}

.narrative-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

.narrative-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.narrative-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.narrative-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.narrative-card li svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-color);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --- Stats Counter Section --- */
.stats-section {
  background-color: var(--primary-dark);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 20px;
  position: relative;
}

.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: var(--border-light);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 10px;
  font-feature-settings: "tnum";
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-white-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* --- Localities & Tags --- */
.localities-section {
  background-color: var(--bg-light);
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 800px;
  margin: 30px auto 0 auto;
}

.locality-chip {
  background-color: var(--bg-white);
  color: var(--primary-dark);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: var(--border-radius-xl);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: float-chip 4.5s ease-in-out infinite;
}

@keyframes float-chip {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.locality-chip:nth-child(2n) {
  animation-delay: 0.4s;
  animation-duration: 4.8s;
}
.locality-chip:nth-child(3n) {
  animation-delay: 0.9s;
  animation-duration: 5.2s;
}
.locality-chip:nth-child(4n) {
  animation-delay: 1.3s;
  animation-duration: 4.4s;
}
.locality-chip:nth-child(5n) {
  animation-delay: 1.8s;
  animation-duration: 5s;
}

.locality-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

.locality-chip:hover {
  animation: none;
  border-color: var(--accent-color);
  background-color: var(--bg-white);
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

/* --- Core Values Grid --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 40px 30px;
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-emerald-light);
}

.value-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(13, 92, 58, 0.08);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
}

.value-icon-wrap svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.value-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- Awards Section --- */
.awards-section {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.awards-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}

/* --- Awards Slider / Carousel --- */
.awards-gallery-slider {
  width: 100%;
}

.award-slider-card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
  transition: var(--transition-smooth);
}

.award-slider-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.award-slider-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease-in-out;
}

.award-slider-card.changing img {
  opacity: 0.2;
}

/* Navigation Buttons overlay */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slider-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.slider-btn:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Dots indicator overlay */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border-radius: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--accent-color);
  transform: scale(1.2);
}

/* Animated Text container */
.awards-content-slider {
  width: 100%;
}

.slider-text-container {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  width: 100%;
}

.slide-text-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.award-quote {
  font-size: 1.25rem;
  color: var(--primary-dark);
  font-weight: 600;
  line-height: 1.6;
  border-left: 4px solid var(--accent-color);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
}

/* Keyframes for directional slide animations */
@keyframes slideInUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideOutUp {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-50px); opacity: 0; }
}

@keyframes slideInDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

.text-slide-in-up {
  animation: slideInUp 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.text-slide-out-up {
  animation: slideOutUp 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.text-slide-in-down {
  animation: slideInDown 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.text-slide-out-down {
  animation: slideOutDown 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .narrative-grid {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .narrative-grid {
    grid-template-columns: 1fr;
  }
  .narrative-visual {
    margin-top: 30px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .stat-card:nth-child(2)::after {
    display: none;
  }
  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .awards-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .award-slider-card img {
    height: 320px;
  }
  .slider-text-container {
    min-height: 480px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .stat-card::after {
    display: none !important;
  }
}
