:root {
  --bg: #3d4a3a;
  --bg-soft: #4a5947;
  --text: #e8e6e3;
  --muted: #b8bcb5;
  --line: #5a6854;
  --accent: #a8c69f;
  --accent-2: #c4d9bb;
  --accent-dark: #2d3a2a;
  --accent-light: #6b8964;
  --gold: #d4b888;
  --danger: #d4746b;
  --teal: #668b7a;
  --teal-dark: #3d5449;
  --teal-light: #7fa391;
  --teal-soft: #9ab8a9;
  --cream: #5a6854;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 85% -10%, #4a5947 0%, transparent 60%),
    radial-gradient(1000px 500px at -10% 10%, #3d4a3a 0%, transparent 55%),
    var(--bg);
}

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

.announcement-bar {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #ffffff;
  text-align: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.announcement-bar p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 28px;
  margin: 0 32px;
  background: linear-gradient(135deg, rgba(168, 198, 159, 0.5) 0%, rgba(196, 217, 187, 0.5) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 198, 159, 0.3);
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.logo {
  position: absolute;
  left: 28px;
}

.logo img {
  height: 55px;
  width: auto;
  display: block;
  filter: brightness(1.2) contrast(1.1);
}

.site-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.site-nav a {
  color: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 20px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  padding: 64px 24px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px 60px;
  min-height: 70vh;
  justify-content: center;
  overflow: hidden;
}

/* Hero Video Background */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(61, 74, 58, 0.85) 0%,
      rgba(61, 74, 58, 0.75) 50%,
      rgba(61, 74, 58, 0.85) 100%);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(74, 89, 71, 0.9) 0%, rgba(90, 104, 84, 0.9) 100%);
  color: #e8e6e3;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease-out;
  border: 1px solid rgba(168, 198, 159, 0.3);
}

.hero-centered .hero-title {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-centered .hero-sub {
  max-width: 600px;
  font-size: 20px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-features {
  display: flex;
  gap: 32px;
  margin: 32px 0;
  animation: fadeInUp 0.8s ease-out 0.6s both;
  justify-content: center;
  width: 100%;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.feature-icon {
  font-size: 20px;
}

.hero-centered .hero-cta {
  animation: fadeInUp 0.8s ease-out 0.8s both;
  justify-content: center;
  width: 100%;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.hero-sub {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 24px;
}

.hero-cta {
  display: flex;
  gap: 12px;
}

.hero-visual {
  min-height: 320px;
  background:
    radial-gradient(120px 120px at 20% 30%, rgba(168, 198, 159, 0.12), transparent 60%),
    radial-gradient(200px 200px at 80% 70%, rgba(136, 194, 130, 0.08), transparent 60%),
    linear-gradient(135deg, #4a5947, #3d4a3a);
  border: 1px solid var(--line);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(117, 176, 111, 0.03) 18px, rgba(117, 176, 111, 0.03) 19px);
  mix-blend-mode: multiply;
}

.section {
  padding: 56px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 16px 0 20px;
  flex-wrap: wrap;
}

#fabric-search {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 260px;
}

.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}

.chip.active {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

/* Carousel styles */
#fabric-grid {
  position: relative;
  overflow: hidden;
  padding: 40px 70px 100px;
  max-width: 1400px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 25%;
  padding: 0 20px;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive slides */
@media (max-width: 1200px) {
  .carousel-slide {
    flex: 0 0 33.333%;
  }
}

@media (max-width: 980px) {
  #fabric-grid {
    padding: 30px 60px 90px;
  }

  .carousel-slide {
    flex: 0 0 50%;
  }
}

@media (max-width: 640px) {
  #fabric-grid {
    padding: 20px 10px 85px;
    overflow: hidden;
  }

  .carousel-slide {
    flex: 0 0 100%;
    padding: 0 10px;
    max-width: 100%;
  }

  .carousel-track {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #fabric-grid {
    padding: 20px 8px 80px;
  }

  .carousel-slide {
    padding: 0 8px;
  }
}

.fabric-card-link {
  text-decoration: none;
  display: block;
}

.fabric-card-carousel {
  background: var(--bg-soft);
  border: 3px solid var(--line);
  border-radius: 50%;
  overflow: hidden;
  transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .4s ease, border-color .3s ease;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.fabric-card-carousel::before {
  display: none;
}

.fabric-card-carousel:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 48px rgba(168, 198, 159, 0.3);
  border-color: var(--accent);
}

.fabric-card-carousel:hover::before {
  display: none;
}

.fabric-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s ease;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.fabric-card-carousel:hover .fabric-image {
  transform: scale(1.05);
}

.fabric-name {
  padding: 16px 20px;
  margin: 0;
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(to top, rgba(29, 39, 28, 0.95) 0%, rgba(29, 39, 28, 0.75) 50%, transparent 100%);
  position: relative;
  z-index: 1;
  width: 100%;
  transition: all .3s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.3px;
}

.fabric-card-carousel:hover .fabric-name {
  color: var(--accent-2);
  background: linear-gradient(to top, rgba(29, 39, 28, 1) 0%, rgba(29, 39, 28, 0.85) 50%, transparent 100%);
  padding: 20px 20px;
}

@media (max-width: 980px) {
  .fabric-card-carousel {
    width: 240px;
    height: 240px;
  }

  .fabric-name {
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .carousel-slide {
    padding: 0 12px;
  }

  .fabric-card-carousel {
    width: 300px;
    height: 300px;
    border-width: 2px;
  }

  .fabric-name {
    font-size: 20px;
    padding: 18px 20px;
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    padding: 0 10px;
  }

  .fabric-card-carousel {
    width: 280px;
    height: 280px;
  }

  .fabric-name {
    font-size: 18px;
    padding: 16px 18px;
  }
}

/* Carousel loading animation */
.carousel-slide {
  animation: slideIn 0.5s ease-out backwards;
}

.carousel-slide:nth-child(1) {
  animation-delay: 0.1s;
}

.carousel-slide:nth-child(2) {
  animation-delay: 0.2s;
}

.carousel-slide:nth-child(3) {
  animation-delay: 0.3s;
}

.carousel-slide:nth-child(4) {
  animation-delay: 0.4s;
}

.carousel-slide:nth-child(5) {
  animation-delay: 0.5s;
}

.carousel-slide:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image loading effect */
.fabric-image {
  background: linear-gradient(90deg,
      rgba(117, 176, 111, 0.03) 0%,
      rgba(117, 176, 111, 0.06) 50%,
      rgba(117, 176, 111, 0.03) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.fabric-image[src] {
  animation: none;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.carousel-nav {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  padding: 0 10px;
}

.carousel-btn {
  pointer-events: all;
  background: rgba(232, 230, 227, 0.95);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(168, 198, 159, 0.4);
  color: #2d3a2a;
  font-size: 32px;
  font-weight: 600;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
}

.carousel-btn:hover {
  background: var(--accent);
  color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(168, 198, 159, 0.4);
  border-color: var(--accent-2);
  opacity: 1;
}

.carousel-btn:active {
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .carousel-nav {
    padding: 0 0;
  }
}

@media (max-width: 480px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .carousel-nav {
    padding: 0 0;
  }
}

.carousel-dots {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(117, 176, 111, 0.2);
  cursor: pointer;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  position: relative;
}

.carousel-dot:hover {
  background: rgba(117, 176, 111, 0.4);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--accent);
  width: 36px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(117, 176, 111, 0.3);
}

@media (max-width: 640px) {
  .carousel-dots {
    bottom: 25px;
    padding: 6px 10px;
    gap: 6px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }

  .carousel-dot.active {
    width: 28px;
  }
}


.card {
  background: rgba(74, 89, 71, 0.5);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  color: var(--text);
}

.fabric-card {
  display: grid;
  gap: 12px;
  grid-template-rows: 180px auto;
  cursor: pointer;
  transition: transform .2s ease;
}

.fabric-card:hover {
  transform: translateY(-2px);
}

.fabric-media {
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(140px 100px at 20% 30%, rgba(168, 198, 159, 0.12), transparent 60%),
    radial-gradient(180px 120px at 80% 70%, rgba(136, 194, 130, 0.08), transparent 60%),
    linear-gradient(135deg, #4a5947, #3d4a3a);
}

.fabric-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fabric-title {
  font-weight: 600;
  margin: 0;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  color: var(--accent);
  background: rgba(117, 176, 111, 0.06);
  border: 1px solid rgba(117, 176, 111, 0.15);
  border-radius: 999px;
  padding: 4px 8px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.certifications {
  background: linear-gradient(180deg, rgba(117, 176, 111, 0.02), transparent);
}

.certification-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.certification-card {
  background: var(--bg-soft);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.certification-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(117, 176, 111, 0.05), rgba(136, 194, 130, 0.03));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certification-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(117, 176, 111, 0.15);
}

.certification-card:hover::before {
  opacity: 1;
}

.cert-logo {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4a5947;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.certification-card:hover .cert-logo {
  transform: scale(1.05);
  border-color: var(--accent);
}

.cert-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.certification-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.certification-card:hover h3 {
  color: var(--accent);
}

.cert-url {
  font-size: 14px;
  color: var(--muted);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.certification-card:hover .cert-url {
  opacity: 1;
  transform: translateY(0);
  color: var(--accent);
}

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

  .certification-card {
    padding: 24px 20px;
  }

  .cert-logo {
    width: 100px;
    height: 100px;
  }
}

.accent-card {
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, rgba(168, 198, 159, 0.12), rgba(168, 198, 159, 0.05));
  border-radius: 14px;
  padding: 16px;
}

.bullets {
  margin: 0;
  padding-left: 18px;
}

.bullets li {
  margin: 8px 0;
  color: var(--text);
}

.capabilities .steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.step {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 14px;
  color: var(--muted);
  background: var(--bg-soft);
}

.step span {
  font-weight: 700;
  color: var(--accent);
  margin-right: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0 0;
  line-height: 1.4;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.contact {
  position: relative;
}

.contact-inner {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(117, 176, 111, 0.05), rgba(117, 176, 111, 0.02));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

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

  .contact-inner {
    padding: 20px 16px;
  }

  .contact-inner h2 {
    font-size: 24px;
  }

  .contact-inner .btn {
    width: 100%;
    justify-content: center;
  }
}

.contact-form {
  display: grid;
  gap: 12px;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

input,
textarea {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--bg-soft);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #1d271c;
  border: none;
  font-weight: 600;
}

.btn-secondary {
  background: rgba(74, 89, 71, 0.7);
  color: #e8e6e3;
  border: 1px solid rgba(168, 198, 159, 0.4);
  font-weight: 600;
}

.btn:hover {
  filter: brightness(1.04);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 60px 24px 30px;
  margin-top: 80px;
  background: var(--bg-soft);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-col p,
.footer-col a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 8px 0;
}

.footer-col a {
  display: block;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col .social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col .social-links a {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 500;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.footer-bottom strong {
  color: var(--text);
}

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

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

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-panel {
  position: relative;
  width: min(980px, 92vw);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.modal-media {
  min-height: 320px;
  background: radial-gradient(200px 200px at 70% 30%, rgba(127, 163, 145, 0.15), transparent 60%), linear-gradient(135deg, #4a5947, #3d4a3a);
  border-right: 1px solid var(--line);
}

.modal-content {
  padding: 18px 18px 24px;
}

.specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  margin: 14px 0;
}

.specs dt {
  color: var(--muted);
}

.specs dd {
  margin: 0;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

/* Page */
.page-hero {
  padding: 56px 24px 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.timeline ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.timeline li {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #0f1624;
}

.timeline .time {
  color: var(--accent);
  font-weight: 700;
  width: 70px;
}

.timeline .event {
  color: var(--text);
}

/* Layout: responsive */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-features {
    gap: 20px;
  }

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

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

  .capabilities .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .hero-features {
    flex-direction: column;
    gap: 12px;
  }

  .hero-centered {
    padding: 60px 20px 40px;
    min-height: auto;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 16px;
    right: 16px;
    transform: translateY(-10px);
    width: auto;
    min-width: auto;
    padding: 16px;
    background: linear-gradient(135deg, rgba(74, 89, 71, 0.95) 0%, rgba(90, 104, 84, 0.95) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(168, 198, 159, 0.4);
    border-radius: 20px;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }

  .site-nav a {
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #ffffff;
  }

  .site-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  .site-nav.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .fields {
    grid-template-columns: 1fr;
  }

  .fabric-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .capabilities .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .carousel-slide {
    flex: 0 0 100%;
  }

  .fabric-image {
    height: 280px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  #fabric-grid {
    padding: 20px 50px 80px;
  }
}

@media (max-width: 980px) {
  .carousel-slide {
    flex: 0 0 50%;
  }

  .fabric-image {
    height: 240px;
  }

  #fabric-grid {
    padding: 20px 55px 80px;
  }
}


/* Subtle reveals */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Staggered animations for grid items */
.reveal.delay-1 {
  transition-delay: 0.1s;
}

.reveal.delay-2 {
  transition-delay: 0.2s;
}

.reveal.delay-3 {
  transition-delay: 0.3s;
}

.reveal.delay-4 {
  transition-delay: 0.4s;
}

.reveal.delay-5 {
  transition-delay: 0.5s;
}

/* Scale reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-scale.in {
  opacity: 1;
  transform: scale(1);
}

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.in {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.in {
  opacity: 1;
  transform: translateX(0);
}

/* Fade only */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.reveal-fade.in {
  opacity: 1;
}

/* Section titles animation */
.section-head.reveal h2 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-head.reveal.in h2 {
  opacity: 1;
  transform: translateY(0);
}

.section-head.reveal p {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

.section-head.reveal.in p {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover animations */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  background: rgba(74, 89, 71, 0.65);
}

/* Step items animation */
.step {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.step:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(117, 176, 111, 0.12);
}

/* Button hover effects */
.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(117, 176, 111, 0.25);
}

/* Fabric card animations */
.fabric-card-carousel {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fabric-card-carousel:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Fabric Detail Page Styles */
.fabric-detail-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--accent);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent-2);
}

.fabric-detail-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

/* Gallery Styles */
.fabric-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 100px;
}

.gallery-main {
  position: relative;
  width: 100%;
  height: 600px;
  background: var(--bg-soft);
  border: 2px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-main:hover img {
  transform: scale(1.05);
}

.fabric-name-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(45, 58, 42, 0.9);
  backdrop-filter: blur(8px);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  color: #e8e6e3;
  border: 1px solid rgba(168, 198, 159, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

/* Thumbnails */
.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding: 4px;
}

.gallery-thumbnails::-webkit-scrollbar {
  width: 8px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: var(--bg-soft);
  border-radius: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.gallery-thumbnail {
  position: relative;
  height: 140px;
  border: 2px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-soft);
}

.gallery-thumbnail:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(117, 176, 111, 0.15);
}

.gallery-thumbnail.active {
  border-color: var(--accent);
  border-width: 3px;
  box-shadow: 0 4px 16px rgba(117, 176, 111, 0.2);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumbnail-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #ffffff;
  padding: 8px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-thumbnail:hover .thumbnail-name,
.gallery-thumbnail.active .thumbnail-name {
  opacity: 1;
}

/* Fabric Info Section */
.fabric-info {
  position: sticky;
  top: 100px;
}

.fabric-info h1 {
  font-size: 48px;
  margin: 0 0 16px 0;
  color: var(--text);
  font-weight: 700;
}

.fabric-info>p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 32px 0;
  line-height: 1.6;
}

.fabric-variants {
  background: linear-gradient(135deg, rgba(117, 176, 111, 0.08), rgba(136, 194, 130, 0.05));
  border: 1px solid rgba(117, 176, 111, 0.2);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 32px;
}

.fabric-variants h3 {
  font-size: 18px;
  margin: 0 0 12px 0;
  color: var(--text);
}

.variant-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #1d271c;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.fabric-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.fabric-actions .btn {
  flex: 1;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  justify-content: center;
}

.fabric-actions .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #1d271c;
  border: none;
  box-shadow: 0 4px 12px rgba(168, 198, 159, 0.3);
}

.fabric-actions .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(168, 198, 159, 0.4);
  transform: translateY(-2px);
}

.fabric-actions .btn-secondary {
  background: rgba(74, 89, 71, 0.6);
  color: #e8e6e3;
  border: 1px solid rgba(168, 198, 159, 0.4);
}

.fabric-actions .btn-secondary:hover {
  background: rgba(74, 89, 71, 0.8);
  border-color: var(--accent);
}

.fabric-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.feature-item strong {
  display: block;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}

.feature-item p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .fabric-detail-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .fabric-gallery {
    position: static;
  }

  .fabric-info {
    position: static;
  }

  .gallery-main {
    height: 500px;
  }

  .fabric-info h1 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .gallery-main {
    height: 400px;
  }

  .gallery-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }

  .gallery-thumbnail {
    height: 100px;
  }

  .fabric-info h1 {
    font-size: 32px;
  }

  .fabric-actions {
    flex-direction: column;
  }

  .fabric-name-overlay {
    top: 12px;
    right: 12px;
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .fabric-detail-section {
    padding: 24px 16px;
  }

  .gallery-main {
    height: 300px;
  }

  .gallery-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .gallery-thumbnail {
    height: 80px;
  }

  .fabric-info h1 {
    font-size: 28px;
  }
}

/* About Page Responsive */
.about-two-col {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}

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

  .accent-card[style*="position: sticky"] {
    position: relative !important;
    top: auto !important;
  }
}

@media (max-width: 768px) {
  .site-header {
    margin: 0 16px;
    padding: 12px 20px;
    position: relative;
    overflow: visible;
  }

  .logo img {
    height: 48px;
  }

  .page-hero {
    padding: 40px 16px 8px;
  }
}

@media (max-width: 640px) {
  .site-header {
    margin: 0 12px;
    padding: 10px 16px;
    justify-content: space-between;
  }

  .logo {
    position: static;
    left: auto;
  }

  .logo img {
    height: 60px !important;
    width: auto !important;
  }

  .nav-toggle {
    position: static;
    right: auto;
    padding: 8px 12px;
    font-size: 18px;
  }

  .about-two-col>div {
    padding: 24px !important;
  }
}

@media (max-width: 480px) {
  .site-header {
    border-radius: 30px;
    padding: 8px 12px;
    margin: 0 8px;
  }

  .logo img {
    height: 55px !important;
    width: auto !important;
  }

  .nav-toggle {
    padding: 6px 10px;
    font-size: 16px;
  }

  .nav-toggle {
    right: 14px;
    padding: 7px 11px;
    font-size: 16px;
  }
}