/* =========================================================
   ALLWIN SOCKS — SITE STYLESHEET
   Palette: deep indigo + marigold + coral, on a cool ivory base
   ========================================================= */

:root {
  --indigo-900: #0F1E33;
  --indigo-700: #1C3457;
  --marigold-500: #C9A227;
  --marigold-100: #F5EEDA;
  --coral-500: #1E7F55;
  --canvas-50: #F4F5F3;
  --ink-900: #14171F;
  --ink-600: #4B5568;
  --white: #FFFFFF;
  --line: #DCDFD9;

  --font-display: "Sora", "Segoe UI", Arial, sans-serif;
  --font-body: "Work Sans", "Segoe UI", Arial, sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --max-width: 1180px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--canvas-50);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--indigo-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { max-width: 62ch; color: var(--ink-600); }

a { color: inherit; }

img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

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

.eyebrow-free-heading { margin-top: 0; }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--indigo-900);
  border-bottom: 3px solid var(--marigold-500);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.brand-logo {
  height: 54px;
  width: 54px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.85);
}
@media (max-width: 640px) {
  .brand-logo { height: 46px; width: 46px; }
}

/* The .brand-mark circle below is an automatic fallback: it only appears
   if images/logo.png is missing. Upload your logo as images/logo.png and
   it will replace this circle automatically — no code editing needed. */
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--marigold-500);
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--indigo-900);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

/* Replace .brand-mark with an <img> tag pointing at your real logo file
   (see README-FOR-OWNER.txt) and this circle will no longer be needed. */

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  border-bottom-color: var(--marigold-500);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral-500);
  color: var(--white) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: none !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--white);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 1rem;
}

@media (max-width: 820px) {
  nav.main-nav { display: none; width: 100%; }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 4px; padding: 16px 0; }
  .nav-row { flex-wrap: wrap; }
  .menu-toggle { display: inline-block; }
  .nav-cta { margin-top: 10px; display: block; text-align: center; }
}

/* ---------- "Socks" dropdown submenu ---------- */
.has-dropdown { position: relative; }
.dropdown-toggle {
  background: none;
  background-color: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1;
  padding: 4px 10px;
  margin: 0;
  cursor: pointer;
  vertical-align: middle;
}
.dropdown-toggle:focus { outline: none; }
nav.main-nav ul.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  gap: 0;
}

@media (min-width: 821px) {
  .dropdown-toggle { display: none; }
  nav.main-nav ul.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--indigo-900);
    min-width: 190px;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0,0,0,.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    z-index: 60;
  }
  .has-dropdown:hover ul.dropdown-menu,
  .has-dropdown:focus-within ul.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .dropdown-menu li { width: 100%; }
  .dropdown-menu a {
    display: block;
    padding: 9px 18px;
    white-space: nowrap;
    border-bottom: none !important;
  }
  .dropdown-menu a:hover { background: rgba(255,255,255,0.08); }
}

@media (max-width: 820px) {
  nav.main-nav ul.dropdown-menu {
    padding-left: 18px;
    margin-top: 2px;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease;
  }
  .has-dropdown.open ul.dropdown-menu {
    max-height: 400px;
    margin-bottom: 6px;
  }
  .dropdown-menu a { font-size: 0.9rem; opacity: .85; padding: 4px 2px; }
  .has-dropdown.open > .dropdown-toggle { transform: rotate(180deg); display: inline-block; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--indigo-900) 0%, var(--indigo-700) 60%, #24406b 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero h1 { color: var(--white); }
.hero p.lede { color: #C9D2E4; font-size: 1.1rem; max-width: 46ch; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* Hero rotating banner overrides the generic centered .slider look */
.hero-slider { margin-top: 0; background: transparent; border-radius: 0; overflow: hidden; }
.hero-slider .slide {
  aspect-ratio: auto;
  justify-content: flex-start;
  text-align: left;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  min-height: 220px;
}
.hero-slider .slider-dots { position: static; display: flex; gap: 8px; margin-top: 18px; justify-content: flex-start; }
.hero-slider .slider-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.35); cursor: pointer; padding: 0;
}
.hero-slider .slider-dots button.active { background: var(--marigold-500); width: 22px; border-radius: 5px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--marigold-500); color: var(--indigo-900); }
.btn-primary:hover { background: #E4981A; }

.btn-outline { border-color: rgba(255,255,255,0.6); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--white); }

.btn-whatsapp {
  background: #1E7F55;
  color: var(--white);
}
.btn-whatsapp:hover { background: #186B47; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
}

/* ---------- Category tiles ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink-900);
  box-shadow: 0 2px 10px rgba(15, 30, 51, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

.tile:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(15, 30, 51, 0.12); }

.tile .tile-img {
  background: var(--marigold-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  aspect-ratio: 4 / 3;
}
.tile .tile-img img { width: 60%; height: 60%; object-fit: contain; }

/* Photo tiles: real photographs fill the whole tile instead of sitting
   small in the middle like the line-drawing icons do. */
.tile .tile-img--photo { padding: 0; }
.tile .tile-img--photo img { width: 100%; height: 100%; object-fit: cover; }

.tile .tile-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.tile h3 { margin-bottom: 6px; font-size: 1.05rem; }
.tile p { margin: 0 0 14px; font-size: 0.9rem; flex: 1; }
.tile .tile-link { font-weight: 700; color: var(--indigo-700); font-size: 0.85rem; }
.tile:hover .tile-link { color: var(--marigold-500); }

/* ---------- Product grid ---------- */
.filter-row {
  display: flex;
  gap: 10px;
  margin: 30px 0 10px;
  flex-wrap: wrap;
}

.filter-btn {
  border: 2px solid var(--indigo-900);
  background: transparent;
  color: var(--indigo-900);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--indigo-900);
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.product-card .thumb {
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* contain, not cover — the whole sock must be visible, never cropped */
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.product-card h3 { margin-bottom: 0; }

.product-card .price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--coral-500);
  font-size: 1.15rem;
}

.product-card .price span {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-600);
  font-size: 0.85rem;
}

/* "Price on request" reads as a statement, not a number — so it uses
   the calmer brand navy rather than the bright price colour. */
.product-card .price--on-request {
  color: var(--indigo-700);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.product-card p.desc { font-size: 0.92rem; margin: 0; flex: 1; }

.product-card .btn-whatsapp {
  margin-top: 6px;
  justify-content: center;
  font-size: 0.92rem;
  padding: 11px 16px;
}

/* ---------- Steps (ordering process — a real sequence) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 34px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border-top: 4px solid var(--marigold-500);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--indigo-900);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 12px;
}

/* ---------- Slider ---------- */
.slider {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 34px;
  background: var(--indigo-900);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  aspect-ratio: 16 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-align: center;
  padding: 20px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--indigo-900);
}

.slider-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
}

.slider-dots button.active { background: var(--marigold-500); }

/* ---------- Two-column feature ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

@media (max-width: 780px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; }
}

.media-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 2px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-600);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--indigo-900);
}

.video-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Cards (machinery / QC / infra) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(15, 30, 51, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(15, 30, 51, 0.1); }

.info-card h3 { margin-bottom: 8px; }
.info-card p { margin: 0; font-size: 0.94rem; }

/* ---------- Contact ---------- */
.contact-panel {
  background: var(--indigo-900);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
}

.contact-panel h2, .contact-panel h3 { color: var(--white); }
.contact-panel p { color: #C9D2E4; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

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

.contact-detail {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.contact-detail .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--marigold-500);
  margin-top: 7px; flex-shrink: 0;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

form.contact-form input,
form.contact-form textarea {
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-size: 0.96rem;
}

form.contact-form textarea { resize: vertical; min-height: 110px; }

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid var(--line);
}

.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink-900);
  color: #B9BEC9;
  padding: 44px 0 26px;
  font-size: 0.9rem;
}

footer.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

footer.site-footer h4 { color: var(--white); font-size: 0.95rem; }

footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; }
footer.site-footer a { text-decoration: none; color: #B9BEC9; }
footer.site-footer a:hover { color: var(--marigold-500); }

.footer-bottom {
  border-top: 1px solid #2C3040;
  margin-top: 30px;
  padding-top: 18px;
  text-align: center;
  font-size: 0.82rem;
}

@media (max-width: 780px) {
  footer.site-footer .container { grid-template-columns: 1fr; }
}

/* ---------- Floating WhatsApp button ---------- */
.float-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  background: #1E7F55;
  color: var(--white);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  font-size: 1.6rem;
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--marigold-500);
  outline-offset: 2px;
}

.page-hero {
  background: var(--indigo-900);
  color: var(--white);
  padding: 56px 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: #C9D2E4; max-width: 60ch; }

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--indigo-700);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 34px 0;
}

.stat {
  text-align: left;
  color: var(--white);
}

.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--marigold-500);
  display: inline;
}

.stat .num-suffix {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--marigold-500);
}

.stat .label {
  display: block;
  font-size: 0.88rem;
  color: #C9D2E4;
}

/* ---------- Certification badges ---------- */
.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.cert-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  min-width: 130px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  color: var(--indigo-900);
  box-shadow: 0 2px 10px rgba(15, 30, 51, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cert-badge:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(15, 30, 51, 0.1); }

.cert-badge .badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--marigold-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.cert-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--marigold-500); }

/* ---------- Trust bar (below hero) ---------- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  padding: 22px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--indigo-900);
  font-size: 0.92rem;
}
.trust-item .trust-icon { font-size: 1.3rem; }

/* ---------- Export markets ---------- */
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.market-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--marigold-500);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- RFQ form panel ---------- */
.rfq-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px;
}

.rfq-panel h2 { margin-bottom: 6px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.rfq-panel input,
.rfq-panel select,
.rfq-panel textarea {
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.96rem;
  width: 100%;
}

.rfq-panel textarea { resize: vertical; min-height: 110px; }
.rfq-panel label { font-size: 0.85rem; font-weight: 600; color: var(--ink-600); display: block; margin-bottom: 6px; }

/* ---------- Product card MOQ / quote additions ---------- */
.moq-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--indigo-900);
  background: var(--marigold-100);
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
}

.product-card .card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
/* Add to Cart spans the full width, Quote and WhatsApp share the row below */
.product-card .card-actions .btn-addcart { grid-column: 1 / -1; }
.product-card .card-actions .btn {
  padding: 11px 8px;
  font-size: 0.84rem;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  min-width: 0;
}
.product-card .card-actions .btn-whatsapp { margin-top: 0; padding: 11px 8px; font-size: 0.84rem; }
.btn-quote { background: var(--indigo-900); color: var(--white); }
.btn-quote:hover { background: var(--indigo-700); }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-600);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- FAQ accordion ---------- */
.faq-list { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  color: var(--indigo-900);
  font-family: var(--font-display);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--marigold-500); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 16px; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(15, 30, 51, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(15, 30, 51, 0.1); }

.testimonial-card .stars { color: var(--marigold-500); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial-card p.quote { font-style: italic; margin-bottom: 14px; }
.testimonial-card .who { font-weight: 700; color: var(--indigo-900); font-size: 0.9rem; }

/* ---------- Who we serve icons ---------- */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  margin-top: 30px;
  text-align: center;
}

.serve-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--marigold-500);
  border-radius: var(--radius-md);
  padding: 22px 14px;
  box-shadow: 0 2px 10px rgba(15, 30, 51, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.serve-item:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(15, 30, 51, 0.1); }

.serve-item .icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.serve-item .label { font-weight: 600; font-size: 0.9rem; color: var(--indigo-900); }


/* ============================================================
   CART — icon, badge, slide-in drawer
   ============================================================ */
.cart-toggle {
  position: relative;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  margin-left: 14px;
  padding: 4px 6px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.cart-glyph {
  width: 26px;
  height: 26px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--coral-500);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.btn-addcart {
  background: var(--indigo-700);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.btn-addcart:hover { background: var(--indigo-900); }

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}
.cart-drawer.open { visibility: visible; pointer-events: auto; }

.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 51, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cart-drawer.open .cart-overlay { opacity: 1; }

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(380px, 92vw);
  background: var(--white);
  box-shadow: -6px 0 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.cart-drawer.open .cart-panel { transform: translateX(0); }

.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.cart-panel-head h3 { margin: 0; font-size: 1.1rem; }
.cart-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink-600);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.cart-empty {
  color: var(--ink-600);
  font-size: 0.9rem;
  padding: 20px 4px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.cart-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: var(--canvas-50);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info strong { display: block; font-size: 0.92rem; color: var(--indigo-900); }
.cart-item-meta { display: block; font-size: 0.75rem; color: var(--ink-600); margin-bottom: 6px; }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2px 4px;
}
.qty-btn {
  background: none;
  border: none;
  font-size: 1rem;
  width: 22px;
  cursor: pointer;
  color: var(--indigo-900);
}
.qty-value { font-size: 0.85rem; font-weight: 600; min-width: 18px; text-align: center; }

.cart-remove {
  background: none;
  border: none;
  color: var(--ink-600);
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
}
.cart-remove:hover { color: var(--coral-500); }

.cart-panel-foot {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
}
.btn-block { width: 100%; text-align: center; display: block; }
.cart-whatsapp-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cart-note {
  font-size: 0.75rem;
  color: var(--ink-600);
  margin: 10px 0 0;
  max-width: none;
}

@media (max-width: 640px) {
  .card-actions { flex-wrap: wrap; }
}

/* ---- Footer social icon buttons ---- */
.follow-title {
  margin: 22px 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #E7EAF0;
}
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.social-btn svg { width: 23px; height: 23px; display: block; }
.social-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 8px 18px rgba(0,0,0,0.34);
}
.social-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.social-instagram {
  background: radial-gradient(circle at 28% 108%, #FDCB5C 0%, #F7803C 26%, #E1306C 54%, #C13584 74%, #833AB4 100%);
}
.social-whatsapp { background: #25D366; }
.social-facebook { background: #1877F2; }
.social-linkedin { background: #0A66C2; }

@media (max-width: 640px) {
  .social-btn { width: 44px; height: 44px; }
}

/* ---- Factory / about photos ---- */
.about-photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15,30,51,0.18);
  background: #EEF1F6;
}
.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.about-photo.wide img { aspect-ratio: 16 / 7; }
@media (max-width: 720px) {
  .about-photo.wide img { aspect-ratio: 4 / 3; }
}

/* ---- Homepage factory photo strip ---- */
.factory-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.factory-shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15,30,51,0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.factory-shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(15,30,51,0.22);
}
.factory-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.factory-shot figcaption {
  padding: 12px 14px 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--indigo-900, #0F1E33);
  font-weight: 500;
}

/* ---- Hero illustrations (cross-fade with the hero slider) ---- */
.hero-visual {
  position: relative;
  display: block;
  min-height: 340px;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}
.hero-art.active {
  opacity: 1;
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .hero-art { transition: opacity 0.2s linear; transform: none; }
  .hero-art.active { transform: none; }
}

/* ================= HERO LAYOUT (mobile-first, overflow-proof) ================= */
html, body { overflow-x: hidden; max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }

/* Nothing in the hero may force the page wider than the screen */
.hero .container,
.hero-text-wrap,
.hero-visual,
.hero-slider,
.hero-slider .slider-track,
.hero-slider .slide,
.hero-slider .slide > div { min-width: 0; }

.hero-slider { width: 100%; }
.hero-slider .slider-track { width: 100%; }
.hero-slider .slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}
.hero-slider .slide > div { width: 100%; }
.hero h1, .hero p.lede { overflow-wrap: break-word; word-break: normal; hyphens: none; }

/* Desktop: text on the left, illustration on the right.
   The illustration comes first in the HTML, so order flips it back. */
@media (min-width: 861px) {
  .hero-visual { order: 2; }
  .hero-text-wrap { order: 1; }
}

/* Mobile: illustration on top, then headline, then buttons */
@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 26px;
    padding-bottom: 40px;
    gap: 20px;
  }
  .hero-visual { min-height: 210px; margin: 0; }
  .hero h1 { font-size: 1.9rem; line-height: 1.22; }
  .hero p.lede { font-size: 1rem; max-width: 100%; }
  .hero-slider .slide { min-height: 0; }
  .hero-actions { margin-top: 18px; gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero p.lede { font-size: 0.95rem; }
  .hero-visual { min-height: 180px; }
}

/* ================= HERO BACKGROUND PHOTO + SLIDER OVERRIDES =================
   These sit at the end of the file on purpose: the generic .slider rules
   appear later than the original .hero-slider block and were overriding it. */

.hero {
  position: relative;
  isolation: isolate;
}
/* factory photo layer — strong enough to actually read as a photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/factory-knitting.jpg");
  background-size: cover;
  background-position: center 40%;
  opacity: 0.85;
  z-index: -2;
}
/* Scrim: light at the top so the machines show through,
   deepening downward so the headline and paragraph stay readable. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(15,30,51,0.30) 0%,
      rgba(15,30,51,0.42) 26%,
      rgba(15,30,51,0.80) 46%,
      rgba(15,30,51,0.93) 66%,
      rgba(15,30,51,0.97) 100%),
    linear-gradient(105deg, rgba(15,30,51,0.55) 0%, rgba(15,30,51,0.12) 70%);
  z-index: -1;
}

/* kill the dark card, rounding and stray margin the generic .slider imposed */
.hero .hero-slider {
  background: transparent;
  border-radius: 0;
  margin-top: 0;
  overflow: hidden;
}
/* slides size to their own content — no more empty space under short text */
.hero .hero-slider .slider-track { align-items: flex-start; }
.hero .hero-slider .slide {
  aspect-ratio: auto;
  min-height: 0;
  padding: 0;
  text-align: left;
  justify-content: flex-start;
  align-items: flex-start;
  font-size: inherit;
  font-family: inherit;
}
.hero .hero-slider .slider-dots { margin-top: 16px; }

@media (max-width: 860px) {
  .hero::before { background-position: center 30%; opacity: 0.80; }
  /* on a narrow screen the text spans the full width, so the scrim
     under the illustration has to darken sooner */
  .hero::after {
    background: linear-gradient(180deg,
      rgba(15,30,51,0.34) 0%,
      rgba(15,30,51,0.46) 20%,
      rgba(15,30,51,0.86) 40%,
      rgba(15,30,51,0.95) 58%,
      rgba(15,30,51,0.98) 100%);
  }
  .hero .hero-slider .slide { min-height: 190px; }
}

/* ---- WhatsApp logo inside buttons + real icons in the trust bar ---- */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.wa-glyph {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}
.float-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}
.wa-glyph-lg { width: 28px; height: 28px; }

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(201,162,39,0.14);
  color: var(--gold, #C9A227);
  flex-shrink: 0;
}
.trust-icon svg { width: 19px; height: 19px; display: block; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- Milestone timeline (About page) ---- */
.timeline {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 41px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold, #C9A227), rgba(201,162,39,0.25));
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  padding: 0 0 28px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-year {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 999px;
  background: var(--indigo-900, #0F1E33);
  color: var(--gold, #C9A227);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.tl-now .tl-year { background: var(--gold, #C9A227); color: var(--indigo-900, #0F1E33); }
.tl-body h3 {
  margin: 4px 0 6px;
  font-size: 1.06rem;
  line-height: 1.3;
}
.tl-body p { margin: 0; }

@media (max-width: 560px) {
  .timeline::before { left: 36px; }
  .tl-item { grid-template-columns: 74px 1fr; gap: 14px; }
  .tl-year { height: 30px; font-size: 0.82rem; }
  .tl-body h3 { font-size: 1rem; }
}

/* ---- Export registration badges ---- */
.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 12px;
  border: 1px solid rgba(15,30,51,0.12);
  border-radius: 12px;
  background: #fff;
  color: var(--indigo-900, #0F1E33);
  font-weight: 600;
  font-size: 0.94rem;
  box-shadow: 0 3px 12px rgba(15,30,51,0.07);
}
.cert-badge .badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(201,162,39,0.14);
  color: var(--gold, #C9A227);
  flex-shrink: 0;
}
.cert-badge .badge-icon svg { width: 19px; height: 19px; display: block; }
.cert-note { margin-top: 16px; font-size: 0.92rem; }
@media (max-width: 560px) {
  .cert-badge { width: 100%; }
}

/* ---- Size chips ---- */
.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.size-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--indigo-900, #0F1E33);
  color: var(--gold, #C9A227);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

/* ================= DESKTOP HEADER FIX =================
   nav.main-nav was a block, so the menu list and the
   "Request a Quote" button stacked on two lines. */
@media (min-width: 861px) {
  nav.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
  }
  nav.main-nav ul {
    flex-wrap: nowrap;
    gap: 20px;
  }
  nav.main-nav ul li { white-space: nowrap; }
  nav.main-nav a { font-size: 0.92rem; }
  .nav-cta { white-space: nowrap; flex-shrink: 0; }
  .nav-row { gap: 20px; flex-wrap: nowrap; }
  .brand { flex-shrink: 0; }
}
@media (min-width: 861px) and (max-width: 1150px) {
  nav.main-nav { gap: 16px; }
  nav.main-nav ul { gap: 14px; }
  nav.main-nav a { font-size: 0.86rem; }
  .nav-cta { padding: 8px 13px; font-size: 0.85rem; }
  .brand-name { font-size: 1.02rem; }
}

/* CTA in brand gold, matching the buttons on the page */
.nav-cta {
  background: var(--marigold-500);
  color: var(--indigo-900) !important;
  font-weight: 700;
  transition: filter 0.18s ease, transform 0.18s ease;
}
.nav-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}


/* ---------- "Your school name, knitted in" band ---------- */
.named-intro { max-width: 62ch; margin-bottom: 26px; }
.named-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.named-item {
  margin: 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(18, 57, 90, 0.10);
}
.named-pic {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fff;
}
.named-pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.named-item figcaption {
  padding: 12px 14px 14px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--indigo-700);
}
@media (max-width: 700px) {
  .named-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .named-item figcaption { padding: 10px 11px 12px; font-size: 0.78rem; }
}
