/* ============================================
   Homepage Styles — index.html
   Based on DESIGN.md / SITEMAP.md
   ============================================ */

/* ---------- Hero Banner ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
}
.hero__slider {
  position: relative;
  width: 100%;
}
.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero__slide.active {
  opacity: 1;
  position: relative;
}
.hero__img {
  width: 100%;
  height: auto;
  display: block;
}
.hero__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}
.hero__dot.active {
  background: var(--color-white);
}
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
}
.hero__arrow:hover {
  background: rgba(255,255,255,0.4);
}
.hero__arrow svg {
  width: 24px;
  height: 24px;
}
.hero__arrow--prev {
  left: 20px;
}
.hero__arrow--next {
  right: 20px;
}

/* ---------- About Section ---------- */
.about {
  padding: var(--space-3xl) 0;
}
.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.about__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg);
}
.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__image::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--color-blue);
  border-radius: var(--radius-lg);
  transform: translate(12px, 12px);
  z-index: -1;
  opacity: 0.3;
}
.about__text h2 {
  font-size: var(--font-h2);
  color: var(--color-navy);
  margin-bottom: var(--space-md);
}
.about__text p {
  font-size: var(--font-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}
.about__text .btn {
  margin-top: var(--space-md);
}

/* ---------- Stats Bar ---------- */
.stats {
  background: var(--gradient-primary);
  padding: var(--space-xl) 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}
.stats__item {
  color: var(--color-white);
  padding: var(--space-md);
  position: relative;
}
.stats__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.2);
}
.stats__number {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}
.stats__label {
  font-size: var(--font-body-s);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Products Section ---------- */
.products {
  padding: var(--space-3xl) 0;
  background: var(--color-bg);
}
.products__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}
.products__tab {
  padding: 10px 24px;
  font-size: var(--font-body-s);
  font-weight: 500;
  border-radius: 100px;
  color: var(--color-text-secondary);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--duration-normal) ease;
}
.products__tab:hover {
  color: var(--color-blue);
  border-color: var(--color-blue);
}
.products__tab.active {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* ---------- Feature Products Carousel ---------- */
.feature {
  padding: var(--space-3xl) 0;
}
.feature__carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.feature__track {
  display: flex;
  transition: transform 0.5s var(--ease-in-out);
}
.feature__card {
  flex: 0 0 calc(33.333% - 14px);
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg);
  cursor: pointer;
  margin-right: 20px;
}
.feature__card:last-child {
  margin-right: 0;
}
.feature__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.feature__card:hover img {
  transform: scale(1.05);
}
.feature__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(30,58,95,0.85) 0%, rgba(30,58,95,0.1) 60%);
  transition: background var(--duration-normal);
}
.feature__card:hover::after {
  background: linear-gradient(0deg, rgba(30,58,95,0.9) 0%, rgba(30,58,95,0.2) 60%);
}
.feature__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  color: var(--color-white);
}
.feature__info .model {
  font-size: var(--font-caption);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 4px;
}
.feature__info h3 {
  font-size: var(--font-h3);
  margin-bottom: 6px;
}
.feature__info p {
  font-size: var(--font-body-s);
  opacity: 0.85;
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}
/* Arrows */
.feature__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-fast);
  z-index: 5;
  opacity: 0;
}
.feature__carousel:hover .feature__arrow {
  opacity: 1;
}
.feature__arrow:hover {
  background: var(--color-blue);
  color: var(--color-white);
}
.feature__arrow--prev {
  left: 12px;
}
.feature__arrow--next {
  right: 12px;
}
.feature__arrow svg {
  width: 20px;
  height: 20px;
}
/* Dots */
.feature__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: var(--space-md);
}
.feature__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.feature__dot.active {
  background: var(--color-blue);
  width: 28px;
  border-radius: 5px;
}

/* ---------- News Section ---------- */
.news {
  padding: var(--space-3xl) 0;
  background: var(--color-bg);
}
.news__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: stretch;
}
.news__featured {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
  grid-row: span 3;
  min-height: 0;
  display: block;
}
.news__featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
  position: absolute;
  inset: 0;
}
.news__featured:hover img {
  transform: scale(1.05);
}
.news__featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(30,58,95,0.9) 0%, rgba(30,58,95,0.1) 50%);
}
.news__featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  color: var(--color-white);
}
.news__featured-content .date {
  font-size: var(--font-caption);
  opacity: 0.7;
  margin-bottom: 6px;
}
.news__featured-content h3 {
  font-size: var(--font-h4);
  margin-bottom: 6px;
  line-height: 1.4;
}
.news__featured-content p {
  font-size: var(--font-body-s);
  opacity: 0.8;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* News List Item */
.news__item {
  display: flex;
  gap: var(--space-sm);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  transition: all var(--duration-normal) ease;
  cursor: pointer;
}
.news__item:hover {
  border-color: var(--color-blue);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.news__item-image {
  width: 203px;
  height: 117px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
}
.news__item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-normal) ease;
}
.news__item:hover .news__item-image img {
  transform: scale(1.08);
}
.news__item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news__item-body h4 {
  font-size: 18px;
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--duration-fast);
  margin-bottom: 4px;
}
.news__item-body .news__item-summary {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.news__item-body .date {
  font-size: 14px;
  color: var(--color-text-light);
}
.news__item:hover .news__item-body h4 {
  color: var(--color-blue);
}
.news__more {
  text-align: center;
  margin-top: var(--space-xl);
}
.section__more {
  text-align: center;
  margin-top: var(--space-xl);
}

/* ---------- CTA Section ---------- */
.cta {
  background: var(--gradient-primary);
  padding: var(--space-xl) 0;
  text-align: center;
  color: var(--color-white);
}
.cta h2 {
  font-size: var(--font-h3);
  margin-bottom: var(--space-sm);
}
.cta p {
  font-size: var(--font-body-l);
  opacity: 0.85;
  margin-bottom: var(--space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}