:root {
  --ink: #231f20;
  --paper: #ffffff;
  --green: #3e8e42;
  --yellow: #ccdc29;
  --blue: #73afdd;
  --pink: #e195a0;
  --red: #bb3726;
  --maroon: #491124;
  --muted: #70756e;
  --line: rgba(35, 31, 32, 0.08);
  --white: #ffffff;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background-color: #ffffff;
}
@font-face {
  font-family: 'Acumin Variable Concept';
  src: url('assets/fonts/heading.otf') format('opentype');
}
@font-face {
  font-family: 'Acumin Condensed';
  src: url('assets/fonts/heading-condensed.otf') format('opentype');
}
@font-face {
  font-family: 'Century Gothic';
  src: url('assets/fonts/body.ttf') format('truetype');
  font-weight: normal;
}
@font-face {
  font-family: 'Century Gothic';
  src: url('assets/fonts/body-bold.ttf') format('truetype');
  font-weight: bold;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Century Gothic", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  opacity: 0;
  transition: opacity .45s ease;
  position: relative;
}

h1, h2, h3, h4, h5, h6, .door-logo h1 {
  font-family: "Acumin Variable Concept", system-ui, sans-serif;
}

body.page-ready,
body.landing-body { opacity: 1; }
/* Clean instant page rendering without disruptive curtain animation */
body { opacity: 1 !important; }

/* Global Curved Box & Popup Notification Styling (Req #4) */
.sector-box, .mission-box, .vision-box, .popup-notice, .card-box, .modal-content, [class*="box"] {
  border-radius: 24px !important;
}

/* Logo Crossfade Animation (Req #1 & #2) */
.logo-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  cursor: pointer;
  width: 136px;
  height: 42px;
}
.logo-wrapper .logo-icon-default {
  position: absolute;
  left: 0;
  top: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
}
.logo-wrapper .logo-icon-hover {
  position: absolute;
  left: 0;
  top: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
}
.logo-wrapper:hover .logo-icon-default {
  opacity: 0;
}
.logo-wrapper:hover .logo-icon-hover {
  opacity: 1;
  transform: scale(1.04);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, select, textarea, button { font: inherit; }

.topline {
  display: grid;
  place-items: center;
  min-height: 40px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: center;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  min-height: 96px;
  padding: 0 5vw;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.logo {
  display: grid;
  place-items: center;
  width: 126px;
  height: 44px;
  background: transparent;
  color: #111;
  padding: 9px 12px;
  transition: all 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}
.logo img {
  max-height: 28px;
  object-fit: contain;
}
.logo h2 { color: #111 !important; transition: color 0.3s ease; }
.header nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.header nav a { padding-bottom: 4px; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.header nav a:hover,
.header nav a.active { border-bottom-color: var(--yellow, #ffd700); }
.quote-link {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--green);
  color: var(--green);
  padding: 0 18px;
  min-height: 38px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 9999px;
  background: transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}
.quote-link:hover {
  background: var(--green);
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 32px;
  border: 1px solid currentColor;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 9999px !important;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.button.primary { background: var(--green); border-color: var(--green); color: #fff; }
.button.primary:hover { background: #256b30; }
.button.light { color: #fff; }
.button.dark { background: #111; color: #fff; }

.landing-body { overflow: hidden; background: #050706; }
.home-intro {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(5,7,6,.92), rgba(18,24,20,.84)),
    url("assets/fabric8-service-people.webp") center / cover no-repeat;
  pointer-events: none;
  animation: homeIntroOut .65s ease 3s forwards;
}
.home-intro::before,
.home-intro::after {
  content: "";
  position: absolute;
  inset: 0;
}
.home-intro::before {
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.2), transparent 30%),
    linear-gradient(90deg, rgba(47,135,61,.18), transparent 32%, transparent 68%, rgba(255,255,255,.14));
}
.home-intro::after {
  background:
    linear-gradient(115deg, transparent 0 32%, rgba(255,255,255,.22) 45%, transparent 58%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 1px, transparent 1px 44px);
  mix-blend-mode: screen;
  animation: introSilkDrop 3s cubic-bezier(.68,0,.2,1) forwards;
}
.home-intro-silk {
  position: absolute;
  inset: -20%;
  background: url("assets/fabric8-silk-hero.webp") center / cover no-repeat;
  opacity: .18;
  filter: blur(2px);
  animation: slowZoom 3s ease forwards;
}
.home-intro-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  text-align: center;
  color: #fff;
  width: min(860px, 92vw);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18vh 24px 0;
  animation: homeLogoDrop 2.75s ease forwards;
}
.home-intro-content img {
  width: min(370px, 62vw);
  max-height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(0,0,0,.45));
}
.home-intro-content h2 {
  margin: 10px 0 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  animation: introTextIn 1s ease .85s forwards;
}
.home-intro-content p {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: clamp(12px, 1.3vw, 16px);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  animation: introTextIn 1s ease 1.15s forwards;
}
.royal-door {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 6, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  pointer-events: none;
  animation: introOut 1s cubic-bezier(0.4, 0, 0.2, 1) 2s forwards;
  overflow: hidden;
}
.royal-door::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: url('assets/pattern.webp') center / cover no-repeat;
  opacity: 0.8;
  filter: blur(4px) brightness(0.5);
  z-index: -1;
  animation: patternZoom 3s ease-out forwards;
}

@keyframes patternZoom {
  0% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.door-logo {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #fff;
  text-align: center;
  animation: logoSlideDown 2.8s ease forwards;
}

.door-logo img {
  width: min(360px, 58vw);
  max-height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.22));
}

.door-logo p {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  animation: introTextIn 1.2s ease 1s forwards;
}

.door-logo span {
  max-width: 620px;
  color: rgba(255,255,255,.76);
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  animation: introTextIn 1.2s ease 1.35s forwards;
}

.landing {
  position: relative;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
}
.landing-bg,
.fashion-slide {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.46) 44%, rgba(0,0,0,.1)),
    url("assets/fabric8-service-people.webp") center / cover no-repeat;
  animation: slowZoom 18s ease-in-out infinite alternate;
}
.silk-motion {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255,255,255,.16) 45%, transparent 56%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 44px);
  mix-blend-mode: screen;
  animation: silkSweep 7s ease-in-out infinite;
}
.landing-nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 5vw;
}
.landing-nav img { width: 180px; max-height: 58px; object-fit: contain; }
.landing-nav a { font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.landing-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: calc(100vh - 124px);
  width: min(760px, 90vw);
  padding: 0 5vw 70px;
}
.landing-product {
  position: absolute;
  z-index: 2;
  right: 4vw;
  bottom: 4vh;
  width: min(42vw, 650px);
  pointer-events: none;
}
.landing-product img {
  width: 100%;
  filter: drop-shadow(0 38px 46px rgba(0,0,0,.45));
  animation: productFloat 5.8s ease-in-out infinite;
}
.landing-copy p,
.fashion-copy p,
.page-hero p,
.section-head p {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.landing-copy h1,
.fashion-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5.5vw, 82px);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  word-wrap: break-word;
}
.landing-copy span,
.fashion-copy span,
.page-hero span {
  max-width: 620px;
  margin-top: 22px;
  color: rgba(255,255,255,.82);
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.55;
}
.landing-actions { display: flex; gap: 14px; margin-top: 32px; }
.landing-actions .button { min-width: 138px; }

.fashion-hero,
.page-hero {
  position: relative;
  min-height: calc(100vh - 124px);
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
}
.fashion-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(255,255,255,.18) 43%, transparent 58%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 48px);
  mix-blend-mode: screen;
  opacity: .55;
  animation: silkSweep 6.5s ease-in-out infinite;
}
.fashion-slide.one { background-image: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.38)), url("assets/fabric8-business-uniform-hero.webp"); animation: slideOne 15s infinite, slowZoom 18s ease-in-out infinite alternate; }
.fashion-slide.two { background-image: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.34)), url("assets/fabric8-restaurant-uniforms.webp"); animation: slideTwo 15s infinite, slowZoom 18s ease-in-out infinite alternate; }
.fashion-slide.three { background-image: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.34)), url("assets/fabric8-health-hospitality-uniforms.webp"); animation: slideThree 15s infinite, slowZoom 18s ease-in-out infinite alternate; }
.fashion-copy,
.page-hero > div {
  position: relative;
  z-index: 2;
  width: min(780px, 90vw);
  padding: 70px 5vw;
}
.fashion-copy .button { margin-top: 34px; width: max-content; }

.editorial-grid,
.card-grid,
.sector-cards,
.method-list,
.about-copy,
.values,
.contact-panel,
.catalog-page,
.studio-page,
.quote-page {
  padding: 88px 5vw;
}
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.editorial-grid article,
.card-grid article,
.sector-cards article,
.method-list article {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.editorial-grid img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; background: #efede7; }
.editorial-grid div,
.card-grid article,
.sector-cards article,
.method-list article { padding: 24px; }
.editorial-grid h2,
.card-grid h2,
.sector-cards h2,
.method-list h2 { margin: 0 0 14px; font-size: clamp(24px, 2.3vw, 36px); line-height: 1.05; text-transform: uppercase; }
.editorial-grid p,
.card-grid p,
.sector-cards p,
.method-list p { color: var(--muted); line-height: 1.65; }
.editorial-grid a,
.card-grid a,
.sector-cards a { font-size: 12px; font-weight: 900; text-transform: uppercase; color: var(--green); }

/* Interactive 3D Sector Hover Card System */
.sector-cards {
  max-width: 1300px;
  margin: 60px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  padding: 0 20px;
}

.flip-card {
  background-color: transparent;
  flex: 0 1 380px;
  width: 100%;
  max-width: 380px;
  min-height: 440px;
  perspective: 1400px;
  cursor: pointer;
}

.flip-card .flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  transform-style: preserve-3d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #ffffff;
}

.flip-card:hover .flip-inner,
.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.flip-front, .flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 36px 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.flip-front {
  background-color: #ffffff;
  color: var(--ink, #231f20);
  border: 1px solid var(--line, rgba(35, 31, 32, 0.08));
  transition: border-color 0.3s ease;
}

.flip-card:hover .flip-front {
  border-color: transparent;
}

.flip-back {
  transform: rotateY(180deg);
  color: #ffffff;
  padding: 38px 32px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.flip-back h3 {
  font-family: 'Acumin Variable Concept', sans-serif;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 14px 0;
  color: #ffffff;
}

.flip-back p {
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 24px 0;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  font-family: 'Century Gothic', system-ui, sans-serif;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.flip-back .inquire-btn {
  display: inline-block;
  background: #ffffff;
  color: var(--ink, #231f20) !important;
  font-weight: 900;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  align-self: flex-start;
}

.flip-back .inquire-btn:hover {
  background: var(--ink, #231f20);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.page-hero { min-height: 520px; }
.shop-hero { background: linear-gradient(90deg, rgba(0,0,0,.84), rgba(0,0,0,.22)), url("assets/fabric8-fashion-hero.webp") center / cover; }
.about-hero { background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.35)), url("assets/people_meeting_drive_success.webp") center / cover; }
.services-hero { background: linear-gradient(90deg, rgba(0,0,0,.84), rgba(0,0,0,.22)), url("assets/fabric8-business-uniform-hero.webp") center / cover; }
.sectors-hero { background: linear-gradient(90deg, rgba(0,0,0,.84), rgba(0,0,0,.22)), url("assets/sectors-hero-banner.webp?v=4") center / cover; }
.method-hero { background: linear-gradient(90deg, rgba(0,0,0,.84), rgba(0,0,0,.22)), url("assets/method_hero_wide_panoramic.webp?v=3") center / cover; }
.contact-hero { background: linear-gradient(90deg, rgba(0,0,0,.84), rgba(0,0,0,.22)), url("assets/contact_hero_bg.webp") center / cover; }

.filters {
  display: grid;
  grid-template-columns: 1.4fr .8fr .7fr;
  gap: 12px;
  margin-bottom: 24px;
}
.product-configurator {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: 22px;
  align-items: stretch;
}
.fashion-product-view {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 680px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.7), transparent 34%),
    linear-gradient(135deg, #151817, #eef0ea 58%, #cfd5cb);
}
.fashion-product-view::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255,255,255,.36) 44%, transparent 55%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.1) 0 1px, transparent 1px 42px);
  animation: silkSweep 5.5s ease-in-out infinite;
}
.fashion-product-view img {
  position: relative;
  width: min(78%, 720px);
  max-height: 620px;
  object-fit: contain;
  filter: drop-shadow(0 42px 48px rgba(0,0,0,.28));
  transition: filter .25s ease, transform .25s ease;
  animation: productFloat 5.8s ease-in-out infinite;
}
.fashion-product-view img[data-color="black"] { filter: brightness(.28) contrast(1.18) drop-shadow(0 42px 48px rgba(0,0,0,.34)); }
.fashion-product-view img[data-color="navy"] { filter: sepia(.25) saturate(2.2) hue-rotate(175deg) brightness(.52) drop-shadow(0 42px 48px rgba(0,0,0,.34)); }
.fashion-product-view img[data-color="grey"] { filter: grayscale(1) brightness(.75) drop-shadow(0 42px 48px rgba(0,0,0,.34)); }
.fashion-product-view img[data-color="green"] { filter: sepia(.6) saturate(2.4) hue-rotate(65deg) brightness(.62) drop-shadow(0 42px 48px rgba(0,0,0,.34)); }
.fashion-product-view img[data-color="red"] { filter: sepia(.7) saturate(3) hue-rotate(315deg) brightness(.68) drop-shadow(0 42px 48px rgba(0,0,0,.34)); }
.fashion-product-view img[data-color="burgundy"] { filter: sepia(.7) saturate(2.4) hue-rotate(305deg) brightness(.48) drop-shadow(0 42px 48px rgba(0,0,0,.34)); }
.fashion-product-view img[data-color="charcoal"] { filter: grayscale(1) brightness(.42) drop-shadow(0 42px 48px rgba(0,0,0,.34)); }
.fashion-product-panel {
  display: grid;
  gap: 16px;
  align-content: center;
  padding: clamp(26px, 4vw, 54px);
  background: #fff;
  border: 1px solid var(--line);
}
.fashion-product-panel h2 {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: .95;
  text-transform: uppercase;
}
.fashion-product-panel > span {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.fashion-product-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.color-filter,
.studio-color-swatches,
.mini-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.color-dot {
  position: relative;
  width: 42px;
  height: 42px;
  border: none !important;
  border-radius: 50%;
  background: var(--swatch, #111);
  cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.color-dot[data-color="White"],
.color-dot[data-color="white"] {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.08);
}
.color-dot[data-color="all"] {
  width: auto;
  border-radius: 999px;
  padding: 0 14px;
  background: #111;
  color: #fff;
  box-shadow: none;
}
.color-dot.active {
  transform: scale(1.18);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 2;
  outline: none;
  border: none !important;
}
.color-dot span {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  background: #111;
  color: #fff;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.color-dot:hover span {
  opacity: 1;
}
.mini-swatches {
  margin: 8px 0 0;
}
.mini-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 3px #fff;
}
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  padding: 12px;
  background: #fff;
}
input.error, select.error, textarea.error {
  border-color: #b7342b !important;
  background-color: #fff9f9;
}
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}


.section-head h2 { margin: 0; font-size: clamp(34px, 4vw, 64px); line-height: 1; text-transform: uppercase; }
.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 22px;
}
.studio-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 740px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255,255,255,.18), transparent 34%),
    linear-gradient(135deg, #0c0f0e, #1d241f);
  overflow: hidden;
}
.studio-stage:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,.2), transparent 56%);
  animation: silkSweep 6s infinite;
}
.studio-stage img {
  position: relative;
  width: min(88%, 820px);
  filter: drop-shadow(0 42px 52px rgba(0,0,0,.42));
  transform: translateY(10px);
}
.studio-stage img[data-color="black"] { filter: brightness(.28) contrast(1.18) drop-shadow(0 34px 44px rgba(0,0,0,.38)); }
.studio-stage img[data-color="navy"] { filter: sepia(.25) saturate(2.2) hue-rotate(175deg) brightness(.52) drop-shadow(0 34px 44px rgba(0,0,0,.38)); }
.studio-stage img[data-color="grey"] { filter: grayscale(1) brightness(.75) drop-shadow(0 34px 44px rgba(0,0,0,.38)); }
.studio-stage img[data-color="green"] { filter: sepia(.6) saturate(2.4) hue-rotate(65deg) brightness(.62) drop-shadow(0 34px 44px rgba(0,0,0,.38)); }
.studio-stage img[data-color="red"] { filter: sepia(.7) saturate(3) hue-rotate(315deg) brightness(.68) drop-shadow(0 34px 44px rgba(0,0,0,.38)); }
.logo-preview {
  position: absolute;
  display: grid;
  place-items: center;
  width: var(--logo-size, 13%);
  aspect-ratio: 1.8 / 1;
  background: rgba(255,255,255,.86);
  border: 1px dashed var(--green);
  color: var(--green);
  font-weight: 900;
  font-size: 12px;
  overflow: hidden;
  resize: both;
}
.logo-preview img { width: 100%; height: 100%; object-fit: contain; filter: none; }
.logo-preview.left-chest { left: 60%; top: 35%; }
.logo-preview.right-chest { left: 32%; top: 35%; }
.logo-preview.center { left: 50%; top: 40%; width: calc(var(--logo-size, 13%) * 1.5); transform: translateX(-50%); }
.logo-preview.sleeve { left: 73%; top: 37%; width: calc(var(--logo-size, 13%) * .9); transform: rotate(8deg); }
.studio-controls,
.quote-form,
.quote-wrap > div {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
}
.studio-controls label { display: grid; gap: 8px; font-size: 12px; font-weight: 900; text-transform: uppercase; color: var(--muted); }
.studio-product-name {
  display: grid;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.studio-product-name p,
.control-title {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.studio-product-name h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  text-transform: uppercase;
}
.studio-product-name span {
  color: var(--muted);
  line-height: 1.55;
}
.studio-color-swatches {
  margin: 12px 0 0;
}
.quote-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.cart-item { padding: 12px; border: 1px solid var(--line); margin-bottom: 10px; background: #faf9f4; }
.cart-item button { border: 0; background: transparent; color: #a33; font-weight: 900; cursor: pointer; }

.card-grid, .sector-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* Method List: 2 columns with alternating borders */
.method-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.method-list article {
  border-left: 8px solid var(--yellow);
}
.method-list article:nth-child(even) {
  border-left-color: var(--green);
}
.sector-cards article { border-top: 8px solid var(--accent); }
.sector-cards span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}
.logo-sector-cards article {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 360px;
}
.logo-sector-cards img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  padding: 14px;
  background: #fff;
  border: 3px solid var(--accent);
}

.service-showcase {
  display: grid;
  gap: 28px;
  padding: 88px 5vw;
}
.service-feature {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  min-height: 560px;
  background: #fff;
  border: 1px solid var(--line);
}
.service-feature.reverse {
  grid-template-columns: .88fr 1.12fr;
}
.service-feature.reverse img {
  order: 2;
}
.service-feature img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}
.service-feature div {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(30px, 5vw, 70px);
}
.service-feature p {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.service-feature h2 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 68px);
  line-height: .98;
  text-transform: uppercase;
}
.service-feature span {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.service-feature .button {
  width: max-content;
}
.method-list span { color: var(--green); font-size: 13px; font-weight: 900; }
.about-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-copy div, .values, .contact-panel { background: #fff; border: 1px solid var(--line); padding: 34px; }
.about-copy h2, .values h2, .contact-panel h2 { margin: 0 0 12px; font-size: clamp(34px, 4vw, 58px); text-transform: uppercase; }
.values div { display: flex; flex-wrap: wrap; gap: 10px; }
.values span { padding: 12px 14px; background: #111; color: #fff; font-size: 12px; font-weight: 900; text-transform: uppercase; }

@keyframes doorLeft { to { transform: translateX(-103%); } }
@keyframes doorRight { to { transform: translateX(103%); } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
@keyframes logoSlideDown {
  0% { opacity: 0; transform: translateY(-70px) scale(.96); }
  24%, 76% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(42px) scale(1.03); }
}
@keyframes introTextIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes homeLogoDrop {
  0% { opacity: 0; transform: translateY(-86px) scale(.96); }
  24%, 76% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(46px) scale(1.03); }
}
@keyframes homeIntroOut {
  to { opacity: 0; visibility: hidden; }
}
@keyframes introSilkDrop {
  0% { transform: translateY(-28%) skewY(-2deg); opacity: .1; }
  45% { opacity: .72; }
  100% { transform: translateY(26%) skewY(2deg); opacity: .22; }
}
@keyframes slowZoom { from { transform: scale(1.03); } to { transform: scale(1.1) translateX(1.5%); } }
@keyframes silkSweep { 0%,100% { transform: translateX(-18%); opacity: .25; } 50% { transform: translateX(18%); opacity: .62; } }
@keyframes productFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes pageSilkOut {
  0% { transform: translateX(-110%) skewX(-9deg); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateX(110%) skewX(-9deg); opacity: 1; }
}
@keyframes slideOne { 0%,28%,100% { opacity: 1; } 34%,94% { opacity: 0; } }
@keyframes slideTwo { 0%,28%,68%,100% { opacity: 0; } 34%,61% { opacity: 1; } }
@keyframes slideThree { 0%,61%,100% { opacity: 0; } 68%,94% { opacity: 1; } }

@media (max-width: 980px) {
  .header { grid-template-columns: 1fr; padding: 16px 20px; position: relative; }
  .header nav { flex-wrap: wrap; justify-content: start; gap: 14px; }
  .editorial-grid, .products, .card-grid, .sector-cards, .method-list { grid-template-columns: repeat(2, 1fr); }
  .filters, .studio, .quote-wrap, .about-copy, .product-configurator { grid-template-columns: 1fr; }
  .service-feature,
  .service-feature.reverse { grid-template-columns: 1fr; }
  .service-feature.reverse img { order: 0; }
}
@media (max-width: 560px) {
  .landing-copy h1, .fashion-copy h1, .page-hero h1 { font-size: 46px; }
  .editorial-grid, .products, .card-grid, .sector-cards, .method-list { grid-template-columns: 1fr; }
  .landing-actions { display: grid; }
  .landing-product { display: none; }
}

/* --- NEW CATALOG LAYOUT --- */
.catalog-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  align-items: start;
}



.catalog-sidebar {
  position: sticky;
  top: 100px;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

@media (max-width: 980px) {
  .catalog-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .catalog-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 20px;
    padding: 16px 20px;
  }
  .catalog-sidebar .filter-toggle {
    margin-bottom: 0 !important;
  }
  .filter-contents {
    display: none;
    margin-top: 20px;
  }
  .filter-contents.open {
    display: block;
  }
  .toggle-icon {
    display: block !important;
  }
}

.catalog-sidebar .category-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 12px;
  margin-bottom: 4px;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.catalog-sidebar .category-btn:hover {
  background: var(--green);
  color: #fff;
}

.catalog-sidebar .category-btn.active {
  background: var(--green);
  color: #fff;
  font-weight: bold;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: 1fr; }
}

.product-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: transparent;
  overflow: hidden;
  border: none !important;
}
.product-card-img img {
  object-fit: contain !important;
  padding: 10px !important;
}

.product-card-info {
  padding: 16px 4px !important;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
}

.product-card-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 4px;
}

.product-card-title {
  font-size: 17px;
  font-weight: 900;
  margin: 0 0 10px 0;
  line-height: 1.25;
  color: var(--ink);
  text-align: center;
}

.product-card-btn {
  margin-top: auto;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 8px;
  text-align: center;
  font-weight: bold;
  border-radius: 4px;
  font-size: 12px;
  transition: all 0.2s ease;
}

.product-card:hover .product-card-btn {
  background: var(--ink);
  color: #fff;
}

/* --- PRODUCT MODAL --- */
.product-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-modal-content {
  background: var(--paper);
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: var(--ink);
  color: #fff;
}

.product-modal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

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

.product-modal-image {
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  position: absolute;
  inset: 0;
}

.product-modal-details {
  padding: 32px;
  background: #fff;
  max-height: 90vh;
  overflow-y: auto;
}

/* --- TEXT WIZARD MODAL --- */
.wizard-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wizard-container {
  background: #fff;
  width: 100%;
  max-width: 1100px;
  height: 90vh;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.wizard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.wizard-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.wizard-preview {
  flex: 1;
  background: #f0f0f0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.wizard-stage {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wizard-stage img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.text-preview {
  position: absolute;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
  white-space: pre-line;
  pointer-events: none;
  transition: all 0.3s ease;
}
.wizard-form {
  width: 450px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.wizard-form, .product-modal-details {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.wizard-form::-webkit-scrollbar, .product-modal-details::-webkit-scrollbar {
  display: none;
}
.wizard-product-name {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.wizard-product-name p {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 4px 0;
}
.wizard-product-name h3 {
  margin: 0 0 4px 0;
  font-size: 20px;
}
.wizard-product-name span {
  font-size: 12px;
  color: var(--muted);
}
.wizard-steps-container {
  padding: 24px;
  flex: 1;
}
.step-title {
  margin: 0 0 16px 0;
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 800;
}
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--muted);
}
.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.segmented-control {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.segmented-control button {
  flex: 1;
  background: #fff;
  border: none;
  border-right: 1px solid var(--line);
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}
.segmented-control button:last-child {
  border-right: none;
}
.segmented-control button.active {
  background: var(--ink);
  color: #fff;
}
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.selection-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: block;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  min-height: 90px;
}
.selection-card input {
  display: none;
}
.selection-card .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  word-break: normal;
}
.selection-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
.selection-card.active {
  border-color: var(--green);
  background: rgba(47, 135, 61, 0.04);
  box-shadow: 0 0 0 1px var(--green);
}
.selection-card.active .card-content {
  color: var(--ink);
}
.template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.template-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 12px 8px;
  font-size: 11px;
  font-weight: bold;
}
.template-card input {
  display: none;
}
.template-card.active {
  border-color: var(--ink);
  background: var(--bg-alt, #f5f5f5);
}
.placement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.placement-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}
.placement-card input {
  display: none;
}
.placement-card.active {
  border-color: var(--ink);
  background: var(--bg-alt, #f5f5f5);
}
.summary-card {
  background: #faf9f4;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .wizard-body {
    flex-direction: column;
  }
  .wizard-preview {
    flex: none;
    height: 300px;
  }
  .wizard-form {
    width: 100%;
    flex: 1;
  }
}


/* ISOLATED MODALS CSS */

.modal {

  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: rgba(0,0,0,0.6);

  z-index: 99999;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 20px;

  backdrop-filter: blur(5px);

  -webkit-backdrop-filter: blur(5px);

}



.modal-content {

  background: var(--paper);

  width: 100%;

  max-width: 600px;

  max-height: 90vh;

  overflow-y: auto;

  border-radius: 8px;

  padding: 30px;

  position: relative;

  box-shadow: 0 10px 30px rgba(0,0,0,0.2);

}



.modal-close {

  position: absolute;

  top: 20px;

  right: 20px;

  background: none;

  border: none;

  font-size: 28px;

  line-height: 1;

  cursor: pointer;

  color: var(--ink);

  opacity: 0.6;

  transition: opacity 0.2s;

}



.modal-close:hover {

  opacity: 1;

}


.product-card { 
  position: relative; 
  background: transparent !important; 
  border: none !important;
  border-radius: 0;
  overflow: hidden; 
  cursor: pointer; 
  display: flex; 
  flex-direction: column; 
  box-shadow: none !important;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: none !important;
  border: none !important;
}
.product-card-img img {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  mix-blend-mode: multiply;
}
.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

/* MODERN UI TOAST NOTIFICATIONS (Replaces synchronous alert dialogs) */
.toast-container {
  position: fixed;
  top: 90px;
  right: 30px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 40px);
}
.toast-notice {
  background: rgba(17, 17, 17, 0.95);
  color: #ffffff;
  border-left: 5px solid var(--green, #3e8e42);
  border-radius: 12px !important;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-family: "Century Gothic", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.toast-notice.toast-error {
  border-left-color: #e53e3e;
}
.toast-notice.toast-warning {
  border-left-color: var(--yellow, #ffd700);
}
.toast-close-btn {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  flex-shrink: 0;
}
.toast-close-btn:hover {
  color: #ffffff;
}
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 560px) {
  .toast-container {
    top: 20px;
    right: 20px;
    left: 20px;
    width: auto;
  }
}

/* =========================================================================
   FABRIC8 ATELIER - GLOBAL RESPONSIVE & MONITOR ADAPTABILITY SUITE
   Ensures zero horizontal overflow and visual excellence from 1440p to iPhones
   ========================================================================= */

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  max-width: 1600px !important;
  margin: 0 auto;
}

/* 1. Universal Table Responsive Overflow Protection */
.table-scroll-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* 2. Ultra-Wide Monitor Refinement (1440px +) */
@media (min-width: 1440px) {
  .container, .header-inner, .main-container {
    max-width: 1380px !important;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 3. Tablet & iPad Adaptations (768px - 1024px) */
@media (max-width: 1024px) {
  .header-inner, .navbar, .header {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .grid-3, .grid-4, .shop-grid, .sectors-grid, .method-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .product-page-layout, .quote-wrap {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

/* 4. Smartphone & Compact Touch Screen Overhaul (< 768px) */
@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4, .shop-grid, .sectors-grid, .method-grid, .footer-grid, .product-page-layout, .quote-wrap {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .service-feature, .service-feature.reverse {
    grid-template-columns: 1fr !important;
    direction: ltr !important;
    text-align: left !important;
  }
  
  /* Stack inline 2-column forms vertically */
  form div[style*="grid-template-columns: 1fr 1fr"],
  .form-row[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Fluid Hero Typography Scaling */
  .hero h1, .landing-hero h1, .about-hero h1, .services-hero h1, .sectors-hero h1, .shop-hero h1 {
    font-size: clamp(2rem, 7vw, 2.8rem) !important;
    line-height: 1.15 !important;
    word-wrap: break-word !important;
  }

  /* Reduce heavy spacing for compact vertical rhythm */
  section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .button-group, .hero-actions, .cta-row {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }
  
  .button-group button, .button-group a, .hero-actions button, .hero-actions a {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

/* 5. Compact iPhone & Narrow Mobile Viewports (< 480px) */
@media (max-width: 480px) {
  .container, section, main {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  h1 { font-size: clamp(1.75rem, 6.5vw, 2.4rem) !important; }
  h2 { font-size: clamp(1.4rem, 5vw, 1.8rem) !important; }
  h3 { font-size: clamp(1.2rem, 4.5vw, 1.5rem) !important; }
}

/* Brands Marquee Animation */
@keyframes scrollBelt {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 30px)); /* -50% shifts it exactly halfway, -30px accounts for half the 60px gap so it loops seamlessly */ }
}
