:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-blue: #eaf7fc;
  --ink: #2c3337;
  --muted: #66727a;
  --line: #dbe6ec;
  --accent: #3bafda;
  --accent-strong: #258fbd;
  --soft-gray: #f1f1f1;
  --pale-blue-gray: #edf6fa;
  --shadow: 0 16px 38px rgba(49, 88, 108, 0.1);
  --radius: 20px;
  --max-width: 1260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a:hover,
a:focus {
  color: var(--accent-strong);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-bar {
  background: var(--accent);
  color: #fff;
  font-size: 0.86rem;
}

.top-bar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--ink);
}

.logo__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-strong);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.logo__text {
  font-size: 1.16rem;
  letter-spacing: 0.04em;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 13px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus,
.dropdown-toggle:hover,
.dropdown-toggle:focus {
  background: var(--surface-blue);
  color: var(--accent-strong);
}

.has-dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.has-dropdown:hover .dropdown,
.has-dropdown.is-open .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
}

.dropdown a:hover,
.dropdown a:focus {
  background: var(--surface-blue);
  color: var(--accent-strong);
}

.search-button,
.nav-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.search-button:hover,
.search-button:focus,
.nav-toggle:hover,
.nav-toggle:focus {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--surface-blue);
}

.search-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 50%;
  padding: 11px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.hero {
  padding: 0;
  background: #fff;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  width: 100vw;
  aspect-ratio: 1980 / 1112;
  min-height: 0;
  margin-left: calc(50% - 50vw);
}

.hero__content {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  align-self: start;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(130px, 18vh, 190px) 28px 0;
  text-align: center;
  color: #fff;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.about-panel h2,
.contact-grid h2,
.about-page-grid h2,
.story-grid h2,
.stats-grid h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.08;
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(2.5rem, 4.7vw, 5.4rem);
  letter-spacing: 0;
}

.hero .eyebrow,
.hero h1,
.hero p {
  color: inherit;
  text-shadow:
    0 3px 16px rgba(0, 0, 0, 0.68),
    0 1px 2px rgba(0, 0, 0, 0.48);
}

.hero p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.button--primary {
  background: var(--accent);
  color: #fff;
}

.button--primary:hover,
.button--primary:focus {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: white;
}

.button--secondary {
  background: #fff;
  color: var(--accent-strong);
}

.button--secondary:hover,
.button--secondary:focus {
  background: var(--surface-blue);
  color: var(--accent-strong);
}

.hero__visual {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero__visual.image-frame {
  border: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 420ms ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.image-frame {
  position: relative;
  overflow: hidden;
  background: var(--pale-blue-gray);
  border: 1px solid var(--line);
}

.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.hero__visual .hero__slide {
  object-fit: contain;
}

.section {
  padding: 76px 0;
}

.section--tinted {
  background: #f5f5f5;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.about-panel h2,
.contact-grid h2,
.about-page-grid h2,
.story-grid h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
  letter-spacing: 0;
}

.section-heading h2::after,
.about-panel h2::after,
.contact-grid h2::after,
.about-page-grid h2::after,
.story-grid h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 16px;
  background: var(--accent);
  border-radius: 999px;
}

.section-heading p,
.about-panel p,
.contact-grid p,
.about-page-grid p,
.story-grid p,
.service-list p {
  color: var(--muted);
}

.section-heading--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.65fr);
  gap: 48px;
  align-items: end;
}

.preview-grid,
.feature-grid,
.service-grid,
.footer-grid,
.contact-grid,
.about-page-grid,
.story-grid,
.stats-grid,
.gallery-grid {
  display: grid;
  gap: 24px;
}

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

.preview-card {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.preview-card__image {
  min-height: 250px;
  border-radius: 15px;
}

.preview-card h3,
.product-card h3,
.product-card h2,
.feature h3,
.service-grid h3 {
  margin: 20px 0 8px;
  font-weight: 500;
  line-height: 1.2;
}

.preview-card p,
.product-card p,
.feature p,
.service-grid p {
  margin: 0;
  color: var(--muted);
}

.preview-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent-strong);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

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

.product-card {
  min-width: 0;
}

.product-card__image {
  min-height: 285px;
  border-radius: 18px;
  background-color: var(--soft-gray);
}

.product-card h3,
.product-card h2 {
  font-size: 1.15rem;
}

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

.feature {
  padding: 30px;
  border-top: 3px solid var(--accent);
  background: #fff;
  box-shadow: 0 12px 30px rgba(49, 88, 108, 0.06);
}

.feature span {
  color: var(--accent-strong);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.section--about {
  padding: 0;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.9fr);
  gap: 44px;
  align-items: center;
  padding: 58px;
  background: linear-gradient(135deg, #f5f5f5, var(--surface-blue));
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 30px;
}

.about-panel h2,
.about-panel p {
  color: inherit;
}

.about-panel .eyebrow {
  color: var(--accent-strong);
}

.story-grid {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1fr);
  align-items: center;
  gap: 54px;
}

.story-grid__media {
  min-height: 520px;
  border-radius: 26px;
}

.collection-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.collection-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
}

.collection-nav a:hover,
.collection-nav a:focus {
  border-color: var(--accent);
  background: var(--surface-blue);
  color: var(--accent-strong);
}

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

.service-grid article {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.service-list {
  max-width: 900px;
  margin-bottom: 32px;
}

.gallery-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

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

.stats-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 18px;
  background: #fff;
}

.stats-grid span {
  color: var(--accent-strong);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats-grid h2 {
  margin-top: 12px;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  overflow-wrap: anywhere;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.8fr);
  align-items: start;
}

.contact-list {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  color: var(--muted);
}

.contact-list li + li {
  margin-top: 10px;
}

.contact-form {
  display: grid;
  gap: 15px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(59, 175, 218, 0.15);
}

.contact-form textarea {
  resize: vertical;
}

.page-hero {
  padding: 72px 0;
  background:
    linear-gradient(90deg, rgba(234, 247, 252, 0.92), rgba(255, 255, 255, 0.78)),
    var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-hero--image {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72)),
    url("../images/site-data/clothes-factory-clothes-manufacturer-apparel-factory-oem-clothes-custo/image_04_2026-4-30-1777536287763.jpg") center / cover;
}

.page-hero .container {
  max-width: 900px;
}

.page-hero h1 {
  font-size: clamp(2.35rem, 4.5vw, 4.6rem);
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.about-page-grid {
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: 54px;
}

.about-page-image {
  min-height: 500px;
  border-radius: 26px;
}

.site-footer {
  padding: 60px 0 24px;
  background: #eef3f6;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.footer-grid {
  grid-template-columns: 1.4fr repeat(3, 0.75fr);
  align-items: start;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 16px;
  font-weight: 500;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--muted);
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--accent-strong);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 22px;
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(59, 175, 218, 0.2);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .header__inner {
    min-height: 72px;
  }

  .nav-toggle {
    display: block;
  }

  .search-button {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: 110px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 110px);
    overflow: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav > ul {
    width: min(100% - 40px, var(--max-width));
    margin: 0 auto;
    padding: 18px 0 28px;
    display: grid;
    gap: 2px;
  }

  .site-nav a,
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 0;
  }

  .dropdown {
    position: static;
    min-width: 0;
    padding: 0 0 0 18px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .has-dropdown.is-open .dropdown {
    display: block;
  }

  .hero__grid,
  .section-heading--split,
  .about-panel,
  .contact-grid,
  .about-page-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 0;
  }

  .about-page-image {
    min-height: 330px;
  }

  .preview-grid,
  .product-grid,
  .product-grid--large,
  .feature-grid,
  .service-grid,
  .footer-grid,
  .gallery-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .top-bar__inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 14px;
    padding: 8px 0;
    text-align: center;
  }

  .site-nav {
    top: 116px;
    max-height: calc(100vh - 116px);
  }

  .logo__text {
    font-size: 1rem;
  }

  .hero,
  .section,
  .page-hero {
    padding: 52px 0;
  }

  .hero {
    padding: 0;
  }

  .hero__grid {
    gap: 34px;
  }

  .hero__visual,
  .about-page-image {
    border-radius: 22px;
  }

  .hero__visual {
    border-radius: 0;
    min-height: 0;
  }

  .preview-grid,
  .product-grid,
  .product-grid--large,
  .feature-grid,
  .service-grid,
  .footer-grid,
  .gallery-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .product-card__image,
  .preview-card__image {
    min-height: 235px;
  }

  .story-grid__media {
    min-height: 330px;
  }

  .about-panel {
    padding: 34px 24px;
    border-radius: 22px;
  }

  .contact-form {
    padding: 20px;
  }
}
