/* ============================================
   TShirtFactory — Black/White/Red Trendy Design
   China T-Shirt Manufacturer
   ============================================ */

:root {
  --white: #ffffff;
  --bg: #f5f5f5;
  --light: #fafafa;
  --border: #e5e5e5;
  --text: #0a0a0a;
  --text-light: #4a4a4a;
  --text-muted: #888888;
  --accent: #e60012;
  --accent-dark: #b3000f;
  --accent-light: #ffe5e8;
  --black: #0a0a0a;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(230,0,18,0.18);
  --radius: 0;
  --transition: all 0.25s cubic-bezier(.4,0,.2,1);
  --font: "Inter", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  --max-w: 1280px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--accent-dark); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 15px;
}

ul { list-style: none; }

/* ========== TOP CONTACT BAR ========== */
.top-bar {
  background: var(--black);
  color: var(--white);
  padding: 6px 0;
  font-size: 12px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left {
  display: flex;
  gap: 18px;
  align-items: center;
}

.top-bar-left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-right {
  display: flex;
  gap: 6px;
  align-items: center;
}

.top-bar-right a {
  color: var(--white);
  padding: 2px 8px;
  border-right: 1px solid rgba(255,255,255,0.4);
  font-size: 12px;
}

.top-bar-right a:last-child { border-right: none; }

.top-bar-right a:hover { opacity: 0.85; color: var(--white); }

/* ========== HEADER / NAV ========== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.site-logo-text {
  font-size: 22px;
  font-weight: bold;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.site-logo-text small {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  font-weight: normal;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: bold;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 24px;
}

.lang-toggle {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.lang-toggle a {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: bold;
  color: var(--text-light);
  text-transform: uppercase;
}

.lang-toggle a.active {
  background: var(--accent);
  color: var(--white);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  font-size: 22px;
  color: var(--text);
  padding: 4px 12px;
  cursor: pointer;
  border-radius: var(--radius);
}

/* ========== HERO / SLIDER ========== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-slide {
  position: relative;
  display: none;
}

.hero-slide.active {
  display: block;
}

.hero-slide img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--accent);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 5px;
}

/* ========== SECTION DIVIDER ========== */
.section-divider {
  text-align: center;
  padding: 24px 0;
}

.section-divider img {
  display: inline-block;
  max-width: 200px;
}

/* ========== SECTION TITLES ========== */
.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 32px;
}

.section-title span {
  color: var(--accent);
}

/* ========== ABOUT SECTION ========== */
.about {
  padding: 48px 0;
  background: var(--white);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-size: 26px;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-content p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 14px;
  text-align: justify;
}

.about-content .read-more {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 24px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
}

.about-content .read-more:hover {
  background: var(--accent);
  color: var(--white);
}

/* ========== CATEGORIES ========== */
.categories {
  padding: 48px 0;
  background: var(--bg);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

.category-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.category-card-img {
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--light);
}

.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-card-img img {
  transform: scale(1.05);
}

.category-card-title {
  display: block;
  padding: 14px 8px;
  font-size: 15px;
  font-weight: bold;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid var(--border);
}

.category-card:hover .category-card-title {
  color: var(--accent);
}

/* ========== FEATURED PRODUCTS ========== */
.products {
  padding: 48px 0;
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.product-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--light);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-card-actions {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-card-actions {
  opacity: 1;
}

.product-card-actions a {
  display: block;
  padding: 4px 10px;
  background: rgba(52, 73, 94, 0.9);
  color: var(--white);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 2px;
}

.product-card-actions a:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.product-card-title {
  display: block;
  padding: 12px 10px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  text-align: center;
  min-height: 64px;
}

.product-card-title:hover {
  color: var(--accent);
}

/* ========== ARTICLES ========== */
.articles {
  padding: 48px 0;
  background: var(--bg);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px;
  transition: var(--transition);
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.article-card h3 {
  font-size: 16px;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-card h3 a {
  color: var(--text);
}

.article-card h3 a:hover {
  color: var(--accent);
}

.article-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

.article-card .read-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
  padding: 48px 0;
  background: var(--white);
}

.contact-section h2 {
  font-size: 26px;
  font-weight: bold;
  color: var(--accent);
  text-align: center;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
}

.contact-item-text strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 2px;
}

.contact-item-text p {
  font-size: 13px;
  color: var(--text-light);
}

.contact-form {
  background: var(--bg);
  padding: 24px;
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-size: 18px;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 16px;
}

.form-row {
  margin-bottom: 12px;
}

.form-row label {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 4px;
  font-weight: bold;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-submit {
  display: inline-block;
  padding: 10px 28px;
  background: var(--accent);
  color: var(--white);
  border: none;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
  font-family: var(--font);
}

.btn-submit:hover {
  background: var(--accent-dark);
  color: var(--white);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 30px 0 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-lang {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.footer-lang a {
  color: var(--white);
  padding: 4px 8px;
  font-size: 12px;
  border-right: 1px solid rgba(255,255,255,0.3);
}

.footer-lang a:last-child { border-right: none; }

.footer-lang a:hover { opacity: 0.8; color: var(--white); }

.footer-qr {
  text-align: center;
}

.footer-qr img {
  width: 80px;
  height: 80px;
  margin: 0 auto 4px;
}

.footer-qr p {
  font-size: 11px;
}

.footer-nav {
  padding: 20px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-nav a {
  display: inline-block;
  padding: 4px 14px;
  color: var(--white);
  font-size: 13px;
  border-right: 1px solid rgba(255,255,255,0.3);
}

.footer-nav a:last-child { border-right: none; }

.footer-nav a:hover { opacity: 0.8; color: var(--white); }

.footer-links {
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
}

.footer-links a {
  color: var(--white);
  padding: 0 10px;
  border-right: 1px solid rgba(255,255,255,0.3);
}

.footer-links a:last-child { border-right: none; }

.footer-copyright {
  padding: 14px 0;
  text-align: center;
  font-size: 12px;
  background: rgba(0,0,0,0.15);
}

/* ========== INNER PAGE HERO ========== */
.page-hero {
  position: relative;
  padding: 40px 0;
  background: var(--accent);
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  font-size: 28px;
  font-weight: bold;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}

.breadcrumb a {
  color: rgba(255,255,255,0.85);
}

.breadcrumb a:hover { color: var(--white); }

.breadcrumb .sep {
  margin: 0 6px;
  color: rgba(255,255,255,0.5);
}

/* ========== CONTENT BLOCK ========== */
.content-section {
  padding: 40px 0;
}

.content-section h2 {
  font-size: 20px;
  font-weight: bold;
  color: var(--accent);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-light);
}

.content-section h3 {
  font-size: 16px;
  font-weight: bold;
  color: var(--text);
  margin: 20px 0 10px;
}

.content-section p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 12px;
  text-align: justify;
}

.content-section ul {
  padding-left: 0;
  margin-bottom: 16px;
}

.content-section ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.content-section ul li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: bold;
}

/* FAQ Accordion */
.faq-list {
  max-width: 880px;
  margin: 24px 0;
}
.faq-list > h2 {
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s;
}
.faq-item[open] {
  box-shadow: 0 2px 8px rgba(52, 73, 94, 0.10);
}
.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary:hover { background: var(--light); }
.faq-item p {
  margin: 0;
  padding: 0 20px 16px;
  line-height: 1.7;
  color: #444;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

.spec-table th,
.spec-table td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}

.spec-table th {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: bold;
  width: 30%;
}

.spec-table tr:nth-child(even) td {
  background: var(--light);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .categories-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Nav collapses earlier (1200px) — prevents the wider menu from squeezing */
@media (max-width: 1200px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 8px 0;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--border);
    z-index: 99;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    width: 100%;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
  }

  .main-nav a::after { display: none; }

  .lang-toggle {
    margin: 8px 20px 0;
    padding-left: 0;
    border-left: none;
  }

  .mobile-toggle { display: block; }
}

@media (max-width: 768px) {
  .top-bar-left { display: none; }

  .site-logo-text { font-size: 18px; }
  .site-logo img { height: 40px; }

  .hero-slide img { max-height: 280px; }

  .categories-grid,
  .products-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .footer-top { flex-direction: column; text-align: center; }

  .footer-nav a,
  .footer-links a {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
  }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ========== HERO TRENDY (T-Shirt Factory) ========== */
.hero-trendy {
  position: relative;
  height: 80vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--black);
}
.hero-trendy .hero-bg {
  position: absolute;
  inset: 0;
}
.hero-trendy .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
}
.hero-trendy .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,.75) 0%, rgba(10,10,10,.3) 60%, rgba(230,0,18,.4) 100%);
  display: flex;
  align-items: center;
}
.hero-trendy .hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  color: var(--white);
  width: 100%;
}
.hero-trendy h1 {
  font-size: clamp(34px,6vw,72px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin: 0 0 18px;
  font-weight: 900;
}
.hero-trendy h1 .red { color: var(--accent); }
.hero-trendy p {
  font-size: clamp(15px,1.6vw,20px);
  max-width: 620px;
  margin: 0 0 28px;
  opacity: .9;
  line-height: 1.6;
}
.hero-trendy .hero-cta {
  display: inline-block;
  padding: 16px 36px;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 14px;
  transition: var(--transition);
}
.hero-trendy .hero-cta:hover {
  background: var(--white);
  color: var(--black);
}
.hero-trendy .hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-trendy .hero-stat strong {
  font-size: 30px;
  color: var(--accent);
  display: block;
  font-weight: 900;
}
.hero-trendy .hero-stat span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .8;
}

@media (max-width: 768px) {
  .hero-trendy { height: 60vh; min-height: 400px; }
  .hero-trendy .hero-stats { gap: 20px; }
  .hero-trendy .hero-stat strong { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ========== NAV DROPDOWN (Industry Hub) — additive styles ========== */
.nav-dropdown {
  position: relative;
}

.main-nav .dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 110;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .dropdown-menu a {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: normal;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid var(--accent-light);
}

.main-nav .dropdown-menu a:last-child {
  border-bottom: none;
}

.main-nav .dropdown-menu a:hover,
.main-nav .dropdown-menu a.active {
  background: var(--accent-light);
  color: var(--accent);
}

.main-nav .dropdown-menu a::after {
  display: none;
}

/* Mobile dropdown — static submenu inside collapsed mobile nav */
@media (max-width: 1200px) {
  .main-nav .nav-dropdown { width: 100%; }

  .main-nav .dropdown-toggle {
    width: 100%;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
  }

  .main-nav .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border: none;
    background: var(--light);
  }

  .main-nav .dropdown-menu a {
    padding-left: 36px;
    border-bottom: 1px solid var(--border);
  }
}

/* ========== Factory intro images beside homepage H1 (symmetric) ========== */
.factory-intro-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.factory-intro-img {
  width: 250px;
  height: 190px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 3px solid var(--accent-light);
  box-shadow: var(--shadow-hover);
  background: var(--light);
  flex-shrink: 0;
}

.factory-intro-row h1 {
  flex: 1;
  text-align: center;
  margin: 0 !important; /* overrides inline margin-bottom for vertical centering */
}

@media (max-width: 1100px) {
  .factory-intro-img { width: 180px; height: 136px; }
  .factory-intro-row { gap: 16px; }
}

@media (max-width: 768px) {
  .factory-intro-row {
    flex-direction: column;
    gap: 14px;
  }
  .factory-intro-img {
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}
