/* ================================
   RUKIM TEKSTIL — Components
   ================================ */

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-base);
}

.header-top {
  background: var(--bg-dark);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
}

.header-top-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-top-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.header-top-links a:hover {
  color: #fff;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 1.25rem;
}

.lang-switcher button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-heading);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  transition: color var(--transition-fast);
}

.lang-switcher button:hover {
  color: #fff;
}

.lang-switcher button.active {
  color: #fff;
  background: var(--rukim-red);
  border-radius: 3px;
}

.lang-switcher .lang-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
}

/* Main header */
.header-main {
  background: #fff;
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 50px;
  width: auto;
  transition: height var(--transition-base);
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--rukim-red);
}

.nav-link .chevron {
  font-size: 0.6rem;
  transition: transform var(--transition-fast);
}

.nav-item:hover .chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  border-top: 3px solid var(--rukim-red);
  z-index: 100;
}

.nav-item:hover>.dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  border-bottom: 1px solid var(--border-color);
}

.dropdown a:last-child {
  border-bottom: none;
}

.dropdown a:hover {
  color: var(--rukim-red);
  background: var(--bg-light);
  padding-left: 1.8rem;
}

/* Sub-dropdown */
.dropdown .has-sub {
  position: relative;
}

.dropdown .has-sub>a::after {
  content: '›';
  float: right;
  font-size: 1.1rem;
  margin-top: -2px;
}

.sub-dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 200px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all var(--transition-base);
  border-top: 3px solid var(--rukim-red);
}

.dropdown .has-sub:hover>.sub-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Scrolled header */
.site-header.scrolled .header-top {
  transform: translateY(-100%);
  height: 0;
  padding: 0;
  overflow: hidden;
}

.site-header.scrolled .header-main {
  box-shadow: var(--shadow-md);
}

.site-header.scrolled .site-logo img {
  height: 40px;
}

/* Mobile language switcher - hidden on desktop */
.mobile-lang {
  display: none;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(5px) translateX(5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5px) translateX(5px);
}

/* ---- HERO SECTION ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
}

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

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.3) 50%,
      rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-content .overline {
  font-family: var(--font-heading);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rukim-red-light);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-content .overline::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--rukim-red);
}

.hero-content h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

.hero-content p {
  font-size: var(--fs-body-lg);
  color: rgba(255, 255, 255, 0.75);
  max-width: 500px;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-caption);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounceDown 2s infinite;
}

.hero-scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* Hero slider dots */
.hero-dots {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-dot.active {
  background: var(--rukim-red);
  border-color: var(--rukim-red);
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.6);
  padding-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 340px;
}

.footer-brand .footer-logo {
  height: 45px;
  margin-bottom: var(--space-md);
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-small);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition-fast);
  font-size: 0.9rem;
}

.footer-social a:hover {
  background: var(--rukim-red);
  border-color: var(--rukim-red);
  color: #fff;
}

.footer-column h4 {
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--rukim-red);
}

.footer-column ul li {
  margin-bottom: 0.6rem;
}

.footer-column ul a {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-small);
  transition: all var(--transition-fast);
}

.footer-column ul a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
  font-size: var(--fs-small);
}

.footer-contact-item .icon {
  color: var(--rukim-red);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  padding: var(--space-md) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-caption);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* ---- ABOUT SECTION (Homepage) ---- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-preview-image {
  position: relative;
  overflow: hidden;
}

.about-preview-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-preview-image .experience-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: var(--rukim-red);
  color: #fff;
  padding: 1.5rem;
  text-align: center;
  min-width: 120px;
}

.experience-badge .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  display: block;
}

.experience-badge .label {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
  display: block;
}

/* ---- STATS SECTION ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
}

.stats-bar .stat-item {
  position: relative;
  padding: var(--space-md) 0;
}

.stats-bar .stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* ---- COLLECTION PREVIEW ---- */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.collection-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.collection-card:hover img {
  transform: scale(1.08);
}

.collection-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  transition: background var(--transition-base);
}

.collection-card:hover .collection-card-overlay {
  background: linear-gradient(to top, rgba(211, 47, 47, 0.8) 0%, rgba(0, 0, 0, 0.3) 60%);
}

.collection-card-overlay h3 {
  color: #fff;
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
}

.collection-card-overlay span {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- SUSTAINABILITY CTA ---- */
.sustainability-cta {
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

.sustainability-cta .bg-image {
  position: absolute;
  inset: 0;
}

.sustainability-cta .bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sustainability-cta .bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.sustainability-cta .container {
  position: relative;
  z-index: 2;
}

.sustainability-cta-content {
  max-width: 600px;
}

.sustainability-cta-content h2 {
  color: #fff;
  margin-bottom: var(--space-md);
}

.sustainability-cta-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-lg);
}

/* ---- QUALITY POLICY CARDS ---- */
.policy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.policy-card {
  background: #fff;
  padding: var(--space-lg);
  border-left: 4px solid var(--rukim-red);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

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

.policy-card .icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.policy-card h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
}

.policy-card p {
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

/* ---- TIMELINE ---- */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rukim-red);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--rukim-red);
  transform: translateX(-6px);
}

.timeline-item .year {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 800;
  color: var(--rukim-red);
  margin-bottom: var(--space-xs);
}

/* ---- CONTACT FORM ---- */
.contact-form-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-field {
  position: relative;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  border: 2px solid var(--border-color);
  background: var(--bg-light);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--rukim-red);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

/* ---- RESPONSIVE: Mobile ---- */
@media (max-width: 992px) {
  .header-top {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
    overflow-y: auto;
  }

  .main-nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-link {
    padding: 0.8rem 0;
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
    padding-left: 1rem;
  }

  .nav-item.open>.dropdown {
    max-height: 500px;
  }

  .dropdown a {
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 0;
  }

  .sub-dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    padding-left: 1rem;
  }

  .dropdown .has-sub.open>.sub-dropdown {
    max-height: 300px;
  }

  /* Mobile overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  /* Show mobile language switcher */
  .mobile-lang {
    display: flex;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Mobile language switcher in nav */
  .mobile-lang {
    display: flex;
    gap: 0.25rem;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    margin-top: var(--space-md);
  }

  .mobile-lang button {
    background: var(--bg-light);
    border: none;
    padding: 0.4rem 0.8rem;
    font-family: var(--font-heading);
    font-size: var(--fs-caption);
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
  }

  .mobile-lang button.active {
    background: var(--rukim-red);
    color: #fff;
  }

  /* Hero mobile */
  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-dots {
    display: none;
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  /* About preview */
  .about-preview {
    grid-template-columns: 1fr;
  }

  /* Stats */
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar .stat-item:not(:last-child)::after {
    display: none;
  }

  /* Collection */
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact form */
  .contact-form-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }
}