/* =============================================
   KoreaTextile B2B Demo — style.css
   BEM methodology | Mobile-first responsive
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', 'Roboto', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- CSS Custom Properties --- */
:root {
  --primary: #bc1e1e;
  --primary-hover: #a01818;
  --dark: #1a1a1a;
  --text: #333333;
  --text-light: #666666;
  --light: #f5f5f5;
  --white: #ffffff;
  --success: #28a745;
  --error: #dc3545;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
  --container: 1200px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section--dark {
  background: var(--dark);
  color: var(--white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--light {
  background: var(--light);
}

.section__header {
  text-align: center;
  margin-bottom: 50px;
}

.section__header h2 {
  margin-bottom: 15px;
  position: relative;
}

.section__header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 15px auto 0;
}

.section__header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: 30px;
}

.grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
  .grid--3col,
  .grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid--2col,
  .grid--3col,
  .grid--4col {
    grid-template-columns: 1fr;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--dark);
}

.btn--outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}

.btn--outline-dark:hover {
  background: var(--dark);
  color: var(--white);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card__image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card__body {
  padding: 25px;
}

.card__icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.card__text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card__link {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary);
  font-weight: 600;
  transition: color var(--transition);
}

.card__link:hover {
  color: var(--primary-hover);
}

/* =============================================
   TOP BAR
   ============================================= */
.topbar {
  background: var(--dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 25px;
}

.topbar a {
  color: var(--white);
  opacity: 0.8;
  transition: opacity var(--transition);
}

.topbar a:hover {
  opacity: 1;
}

/* =============================================
   HEADER / NAV
   ============================================= */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.header--scrolled .nav__link {
  color: var(--white);
}

.header--scrolled .nav__logo {
  color: var(--white);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
}

.nav__logo {
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  transition: color var(--transition);
  padding: 18px 0;
}

.nav__logo span {
  color: var(--primary);
}

.nav__menu {
  display: flex;
  gap: 5px;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: block;
  padding: 22px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}

.nav__link:hover,
.nav__item--active .nav__link {
  color: var(--primary);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--dark);
  transition: all var(--transition);
  border-radius: 2px;
}

.header--scrolled .nav__toggle span {
  background: var(--white);
}

.nav__toggle--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

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

.nav__toggle--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 0;
    transition: right var(--transition);
    z-index: 1000;
  }

  .nav__menu--open {
    right: 0;
  }

  .nav__link {
    color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav__overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }

  .nav__overlay--active {
    display: block;
  }
}

/* =============================================
   HERO SLIDER
   ============================================= */
.hero {
  position: relative;
  height: 650px;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}

.hero__slide--active {
  opacity: 1;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero__controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background var(--transition);
  border: none;
}

.hero__dot--active {
  background: var(--primary);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__arrow:hover {
  background: var(--primary);
}

.hero__arrow--prev {
  left: 20px;
}

.hero__arrow--next {
  right: 20px;
}

@media (max-width: 768px) {
  .hero {
    height: 500px;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* =============================================
   WHY CHOOSE US
   ============================================= */
.features .card {
  text-align: center;
  padding: 40px 25px;
}

.features .card__icon {
  font-size: 3rem;
}

/* =============================================
   STATISTICS BAR
   ============================================= */
.stats {
  padding: 60px 0;
}

.stats .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.stats__item {
  text-align: center;
}

.stats__number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stats__label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .stats .container {
    gap: 20px;
  }

  .stats__item {
    flex: 0 0 45%;
  }

  .stats__number {
    font-size: 2rem;
  }
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials .card {
  padding: 30px;
  text-align: center;
}

.testimonials__quote {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 1rem;
}

.testimonials__author {
  font-weight: 700;
  color: var(--dark);
}

.testimonials__role {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* =============================================
   CTA
   ============================================= */
.cta {
  background: var(--primary);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.cta h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta p {
  opacity: 0.9;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* =============================================
   ABOUT — PROCESS TIMELINE
   ============================================= */
.process {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 40px;
}

.process::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--border);
}

.process__step {
  text-align: center;
  flex: 1;
  position: relative;
  padding: 0 10px;
}

.process__icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 15px;
  position: relative;
  z-index: 1;
}

.process__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.process__text {
  font-size: 0.85rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .process {
    flex-direction: column;
    gap: 30px;
  }

  .process::before {
    top: 0;
    bottom: 0;
    left: 40px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .process__step {
    display: flex;
    text-align: left;
    gap: 20px;
    align-items: flex-start;
  }

  .process__icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin: 0;
  }
}

/* =============================================
   ABOUT — GALLERY
   ============================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.gallery__item {
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
}

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

.gallery__item:hover img {
  transform: scale(1.05);
}

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

/* =============================================
   PRODUCTS
   ============================================= */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.product-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.product-detail:nth-child(even) .product-detail__image {
  order: 2;
}

.product-detail:nth-child(even) .product-detail__info {
  order: 1;
}

.product-detail__image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
}

.product-detail__info h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.product-detail__info p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.product-detail__specs {
  background: var(--light);
  padding: 20px;
  border-radius: 8px;
}

.product-detail__specs dt {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.product-detail__specs dd {
  color: var(--text-light);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.product-detail__specs dd:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-detail:nth-child(even) {
    direction: ltr;
  }
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq__item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq__question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 18px 25px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq__question:hover {
  background: var(--light);
}

.faq__question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform var(--transition);
}

.faq__item--open .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__item--open .faq__answer {
  max-height: 1000px;
  padding: 0 25px 20px;
}

.faq__answer p {
  color: var(--text-light);
  line-height: 1.7;
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.contact-info__item {
  text-align: center;
  padding: 30px;
  background: var(--light);
  border-radius: 8px;
}

.contact-info__icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.contact-info__title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.contact-info__text {
  color: var(--text-light);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .contact-info {
    grid-template-columns: 1fr;
  }
}

.form {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.form__label span {
  color: var(--primary);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: 6px;
  transition: border-color var(--transition);
  background: var(--white);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form__input--error,
.form__select--error,
.form__textarea--error {
  border-color: var(--error);
}

.form__error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 4px;
  display: none;
}

.form__group--error .form__error {
  display: block;
}

.form__textarea {
  min-height: 150px;
  resize: vertical;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

  .form {
    padding: 25px;
  }
}

.form__submit {
  width: 100%;
  margin-top: 10px;
}

.form__message {
  padding: 15px 20px;
  border-radius: 6px;
  margin-top: 20px;
  display: none;
  font-weight: 600;
}

.form__message--success {
  background: #d4edda;
  color: var(--success);
  border: 1px solid #c3e6cb;
  display: block;
}

.form__message--error {
  background: #f8d7da;
  color: var(--error);
  border: 1px solid #f5c6cb;
  display: block;
}

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */
.page-header {
  background: var(--dark);
  padding: 80px 0 60px;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 15px;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__text {
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  transition: color var(--transition);
  font-size: 0.95rem;
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  align-items: flex-start;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* =============================================
   ANIMATIONS (fade-in on scroll)
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   GLOBAL REACH — flag grid
   ============================================= */
.flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.flags__item {
  text-align: center;
  padding: 15px 20px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 120px;
}

.flags__emoji {
  font-size: 2rem;
  margin-bottom: 8px;
}

.flags__name {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}

/* =============================================
   2-COL LAYOUT (about, etc.)
   ============================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.two-col__image {
  border-radius: 8px;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
