/* ==========================================================================
   Hind Technologies - Reusable Components
   File: assets/css/components.css
   Depends on: base.css
   ========================================================================== */

/* Hero */

.hero {
  position: relative;
  padding-block: clamp(52px, 7vw, 110px);
  background:
    radial-gradient(circle at 82% 26%, rgba(44, 167, 255, 0.13), transparent 34%),
    linear-gradient(180deg, var(--body-bg-soft), var(--body-bg));
  border-bottom: 1px solid var(--border-soft);
  overflow: clip;
}

.hero-content {
  max-width: 640px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: var(--fs-xs);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: 18px;
}

.hero-title span {
  color: var(--primary);
}

.hero-description {
  max-width: 610px;
  margin-bottom: 24px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 22px;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-heading);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.hero-points li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffffff 0 28%, transparent 30%),
    var(--primary);
}

.hero-visual {
  position: relative;
  min-height: 360px;
}

.hero-visual-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.hero-floating-card {
  position: absolute;
  z-index: 2;
  min-width: 150px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.hero-floating-card strong {
  display: block;
  color: var(--primary);
  font-size: 1.3rem;
  line-height: 1;
}

.hero-floating-card small {
  display: block;
  margin-top: 6px;
  line-height: 1.35;
}

/* Trust / Logo Strip */

.logo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 42px);
  overflow: hidden;
  padding-block: 24px;
  border-block: 1px solid var(--border-soft);
}

.logo-strip-title {
  flex: 0 0 auto;
  max-width: 220px;
  color: var(--text-heading);
  font-size: var(--fs-sm);
  font-weight: 900;
  line-height: 1.45;
}

.logo-strip-list {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  min-width: 0;
}

.logo-strip img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.82;
}

/* Service Cards */

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: clamp(18px, 2vw, 26px);
}

.solution-card {
  min-height: 210px;
  padding: clamp(22px, 2.3vw, 30px);
}

.solution-card .icon {
  margin-bottom: 18px;
}

.solution-card h3 {
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.solution-card p {
  font-size: 0.92rem;
  line-height: 1.58;
}

.solution-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--primary);
  font-size: var(--fs-sm);
  font-weight: 900;
}

/* Industry Cards */

.industry-card {
  padding: clamp(22px, 2.4vw, 34px);
  min-height: 250px;
}

.industry-card .icon {
  margin-bottom: 22px;
}

.industry-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 900;
}

.industry-card p {
  font-size: 0.95rem;
}

.industry-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--primary);
  font-size: var(--fs-sm);
  font-weight: 900;
}

/* Feature Row */

.feature-row {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.feature-intro,
.feature-item {
  padding: clamp(22px, 2.6vw, 34px);
}

.feature-item {
  border-left: 1px solid var(--border);
}

.feature-item .icon {
  margin-bottom: 16px;
}

.feature-item h3 {
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 900;
}

.feature-item p {
  font-size: var(--fs-sm);
}

/* Process Flow */

.process-band {
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 82% 12%, rgba(44, 167, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #00142d, #031048);
  color: #ffffff;
}

.process-band h2,
.process-band h3,
.process-band p {
  color: #ffffff;
}

.process-band p {
  opacity: 0.78;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: clamp(18px, 2vw, 28px);
  margin-top: 30px;
}

.process-flow-item {
  position: relative;
  text-align: center;
}

.process-flow-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
}

.process-flow-num {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  margin-bottom: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: var(--fs-xs);
  font-weight: 900;
}

.process-flow-title {
  margin-bottom: 6px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 900;
}

.process-flow-text {
  font-size: var(--fs-xs);
  line-height: 1.5;
}

/* Case Study Cards */

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(20px, 2.4vw, 30px);
}

.case-card {
  overflow: hidden;
}

.case-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-muted);
}

.case-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #ffffff;
  font-size: var(--fs-xs);
  font-weight: 900;
}

.case-card-body {
  padding: clamp(20px, 2.3vw, 28px);
}

.case-card h3 {
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 900;
}

.case-card p {
  font-size: 0.92rem;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.case-metric {
  padding-top: 16px;
}

.case-metric strong {
  display: block;
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1;
}

.case-metric small {
  display: block;
  margin-top: 5px;
  font-size: var(--fs-xs);
  line-height: 1.3;
}

/* Portfolio Cards */

.portfolio-card {
  overflow: hidden;
}

.portfolio-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-muted);
}

.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-media img {
  transform: scale(1.04);
}

.portfolio-body {
  padding: clamp(20px, 2.2vw, 28px);
}

.portfolio-category {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: var(--fs-xs);
  font-weight: 900;
}

.portfolio-body h3 {
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 900;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--primary);
  font-size: var(--fs-sm);
  font-weight: 900;
}

/* Blog Cards */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(20px, 2.4vw, 30px);
}

.blog-card {
  overflow: hidden;
}

.blog-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-muted);
}

.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-media img {
  transform: scale(1.04);
}

.blog-body {
  padding: clamp(20px, 2.2vw, 28px);
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.blog-category {
  color: var(--primary);
  font-size: var(--fs-xs);
  font-weight: 900;
  text-transform: uppercase;
}

.blog-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: clamp(1.12rem, 1.3vw, 1.35rem);
  font-weight: 900;
  line-height: 1.35;
}

.blog-card p {
  font-size: 0.92rem;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.blog-author img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-author strong {
  display: block;
  font-size: var(--fs-sm);
}

.blog-author small {
  display: block;
  line-height: 1.2;
}

/* Blog Detail */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(30px, 5vw, 68px);
  align-items: start;
}

.article-content {
  max-width: 820px;
}

.article-content > * + * {
  margin-top: 20px;
}

.article-content h2,
.article-content h3 {
  margin-top: 36px;
  font-family: var(--font-body);
  font-weight: 900;
}

.article-content p,
.article-content li {
  font-size: 1rem;
  line-height: 1.75;
}

.article-content ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.article-content ul li {
  list-style: disc;
  color: var(--text-soft);
}

.article-hero-image {
  overflow: hidden;
  margin-block: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.article-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: grid;
  gap: 24px;
}

.sidebar-card {
  padding: clamp(22px, 2vw, 28px);
}

.sidebar-card h3 {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 900;
}

.toc-list {
  display: grid;
  gap: 10px;
}

.toc-list a {
  display: block;
  padding: 8px 0 8px 14px;
  border-left: 3px solid var(--border);
  color: var(--text-soft);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.toc-list a:hover,
.toc-list a.is-active {
  border-left-color: var(--primary);
  color: var(--primary);
}

/* Testimonials */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(20px, 2.4vw, 30px);
}

.testimonial-card {
  padding: clamp(22px, 2.4vw, 32px);
}

.testimonial-quote {
  margin-bottom: 18px;
  color: var(--text-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.65;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author strong {
  display: block;
  font-size: var(--fs-sm);
}

.testimonial-author small {
  display: block;
  line-height: 1.2;
}

/* Team Cards */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: clamp(20px, 2.4vw, 30px);
}

.team-card {
  overflow: hidden;
  text-align: center;
}

.team-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-muted);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-body {
  padding: 20px;
}

.team-body h3 {
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 900;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.team-social a {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

/* Timeline */

.timeline {
  position: relative;
  display: grid;
  gap: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.timeline-year {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.timeline-card {
  padding: clamp(20px, 2.2vw, 28px);
}

.timeline-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 900;
}

/* Forms / Contact */

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.contact-feature-list {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.contact-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-feature h3 {
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 900;
}

.office-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: clamp(26px, 3vw, 42px);
}

.office-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.office-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.office-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 88%, transparent) 42%, transparent 100%);
}

.office-card-content {
  position: relative;
  z-index: 2;
  max-width: 320px;
}

/* Platform / Logo Cards */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  gap: 16px;
}

.platform-card {
  display: grid;
  place-items: center;
  min-height: 78px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.platform-card img {
  max-width: 120px;
  max-height: 36px;
  object-fit: contain;
}

/* Sidebar CTA */

.sidebar-cta {
  overflow: hidden;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 80% 20%, rgba(44, 167, 255, 0.28), transparent 34%),
    linear-gradient(135deg, #00142d, #003b93);
  color: #ffffff;
}

.sidebar-cta h3,
.sidebar-cta p {
  color: #ffffff;
}

.sidebar-cta p {
  opacity: 0.78;
}

/* Filter Bar */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Pagination */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(32px, 4vw, 54px);
}

.pagination a,
.pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding-inline: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text-heading);
  font-size: var(--fs-sm);
  font-weight: 900;
}

.pagination .is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

/* Marquee */

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 28px;
  animation: marquee 28s linear infinite;
}

.marquee.reverse .marquee-track {
  animation-direction: reverse;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  flex: 0 0 auto;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Slider / Carousel */

.slider {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
}

.slider-actions {
  display: flex;
  gap: 10px;
}

.slider-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.slider-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: var(--primary-soft);
}

/* Search Box */

.search-box {
  display: flex;
  align-items: center;
  max-width: 480px;
  min-height: 56px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 18px;
  color: var(--text-body);
  outline: 0;
}

.search-box button {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-right: 2px;
  border-radius: var(--radius-xs);
  background: var(--primary);
  color: #ffffff;
}

/* Responsive */

@media (max-width: 1199px) {
  .feature-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-intro {
    grid-column: 1 / -1;
  }

  .feature-item {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .article-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 991px) {
  .logo-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .logo-strip-list {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .slider-slide {
    flex-basis: calc((100% - 24px) / 2);
  }

  .hero-visual {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-block: 42px 58px;
  }

  .hero-points {
    flex-direction: column;
  }

  .feature-row {
    grid-template-columns: 1fr;
  }

  .case-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .case-metric {
    padding-top: 12px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .slider-slide {
    flex-basis: 88%;
  }

  .filter-bar,
  .filter-buttons {
    flex-direction: column;
    width: 100%;
  }

  .filter-buttons .tab-btn,
  .filter-bar .btn {
    width: 100%;
  }

  .office-card {
    min-height: auto;
  }

  .office-card::after {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
  }
}