/* Eurasia — shared site frame (menu on every page) and the blocks of the home and brands pages.
   Loaded after styles.css; uses the same colours, type and spacing. */

/* ---------- Header: logo, languages, menu button; the links open under the button ---------- */
.site .header-grid {
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "brand lang toggle"
    "nav   nav  nav";
  padding-bottom: 12px;
}
.site .header-cta { display: none; }
.nav-toggle span { display: none; }
.nav-toggle {
  grid-area: toggle;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 42px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer;
}
.nav-toggle:hover { background: var(--accent-tint); }
.site .nav { display: none; flex-direction: column; flex-wrap: nowrap; gap: 0; margin-top: 12px; padding: 4px 0 0; border-top: 1px solid var(--line); }
.site .nav.is-open { display: flex; }
.site .nav a { min-height: 46px; font-size: 1rem; border-bottom: 1px solid var(--line); }
.site .nav a:last-child { border-bottom: 0; }
.site .nav a[aria-current="page"] { color: var(--accent); }

/* ---------- Sections of the microfiber page ---------- */
.subnav { border-bottom: 1px solid var(--line); }
.subnav-row { display: flex; justify-content: space-between; gap: 4px 12px; }
.subnav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--muted); font-size: 0.9rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.subnav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Home: first screen and the two lines of business ---------- */
.home-head { max-width: 46rem; }
.home-head .lead { max-width: 40rem; }
.home-head .lead-second { margin-top: 10px; }
.site .section-lead.lead-second { margin-top: 12px; }
.home-head .cta-row { margin-top: 24px; }
/* About on the home page: the text first, company details as a compact block under it */
.site .about-grid.about-stack { grid-template-columns: minmax(0, 1fr); gap: 26px; }
.about-stack .about-copy { max-width: 46rem; }
.dir-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; }
/* Both panels share the rows of the grid, so the two pictures are always the same height. */
.dir {
  display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; min-width: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
}
.dir-media { display: block; min-width: 0; aspect-ratio: 16 / 9; background: var(--accent-tint); }
.dir-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the whole logo field is a link to the brands page */
.dir-media-brands { color: inherit; text-decoration: none; display: grid; place-items: center; padding: 18px; aspect-ratio: auto; min-height: 170px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand-sample { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; max-width: 30rem; }
.brand-sample li {
  padding: 8px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem; line-height: 1.2; white-space: nowrap;
}
/* Logos sit straight on the white panel: no tile, no tint. Fixed box, so a tall logo cannot spill out. */
.brand-sample li.is-logo { display: grid; place-items: center; width: 104px; height: 64px; padding: 0; background: transparent; border-color: transparent; }
.brand-sample li.is-logo img { display: block; width: 100px; height: 60px; object-fit: contain; }
.dir-body { min-width: 0; display: grid; align-content: start; justify-items: start; gap: 10px; padding: 22px 20px 24px; }
.dir-body h2 { margin: 0; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.015em; }
.dir-body p { line-height: 1.55; max-width: 34em; }
.dir-body .btn { margin-top: 8px; align-self: end; }

/* ---------- Process ---------- */
/* Shipment photos: equal square tiles, two in a row on phones, four from 720px */
.ship-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.ship-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: var(--placeholder); }
.process { counter-reset: step; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 22px; border-top: 1px solid var(--line); }
.process li {
  counter-increment: step;
  display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; row-gap: 3px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.process li::before {
  content: counter(step); grid-row: 1 / span 2;
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  color: var(--accent); font-weight: 700; font-size: 0.95rem; line-height: 1;
}
.process strong { font-size: 1.05rem; line-height: 1.3; align-self: center; }
.process span { grid-column: 2; line-height: 1.5; color: var(--muted); }

/* ---------- About, contacts ---------- */
.site .about-copy .section-lead + .section-lead { margin-top: 14px; }
.site .about-fact dd { font-size: 1rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.choose { display: grid; gap: 12px; align-content: start; align-self: start; padding: 22px 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.choose h3 { margin: 0 0 4px; font-size: 1.15rem; line-height: 1.3; }
.site .site-footer #footer-legal { color: var(--muted); }

/* ---------- Brands page ---------- */
.page-head { max-width: 46rem; }
.page-head .cta-row { margin-top: 26px; }
.brand-groups { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid var(--line); }
.brand-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.brand-group h3 { margin: 0; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; }
.brand-group-head p { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.view-switch { display: inline-flex; margin-top: 22px; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.view-btn {
  min-height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer;
}
.view-btn + .view-btn { border-left: 1px solid var(--line-strong); }
.view-btn:hover { background: var(--accent-tint); }
.view-btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
.view-btn:focus-visible { outline-offset: -3px; }

.company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.company-tile { height: 100%;
  position: relative; display: grid; place-items: center; align-content: center; gap: 6px; width: 100%; min-height: 104px; padding: 14px 10px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font: inherit; cursor: pointer;
}
.company-tile:hover { border-color: var(--line-strong); }
.company-tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-tint); }
.company-tile-name { font-weight: 700; font-size: 1.02rem; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
/* Logo files have a white background; multiply lets the tile colour show through. */
.company-tile-logo { display: block; width: 88%; max-width: 160px; height: auto; aspect-ratio: 5 / 3; object-fit: contain; mix-blend-mode: multiply; }
.company-tile.has-logo .company-tile-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.company-tile-count { position: absolute; top: 6px; right: 8px; color: var(--muted); font-size: 0.78rem; font-weight: 700; line-height: 1; }

.company-panel { margin-top: 12px; padding: 20px 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.company-panel h3 { margin: 0; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }
.company-panel .brand-cards { margin-top: 14px; }

.brand-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.brand-card {
  display: grid; align-content: start; gap: 3px; min-width: 0; padding: 13px 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.company-panel .brand-card { background: var(--bg); }
.brand-card strong { font-size: 1.05rem; line-height: 1.25; overflow-wrap: anywhere; }
.brand-card span { color: var(--muted); font-size: 0.93rem; line-height: 1.4; overflow-wrap: break-word; }
/* A brand picture (logo or product photo) sits to the left of the name. */
.brand-card.has-media { grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.brand-card.has-media strong { align-self: end; }
.brand-card.has-media span { grid-column: 2; align-self: start; }
.brand-card-media { grid-row: 1 / span 2; display: grid; place-items: center; width: 64px; height: 48px; }
.brand-card-media img { display: block; max-width: 64px; max-height: 48px; object-fit: contain; mix-blend-mode: multiply; }
.brand-card-media.is-photo { background: #fff; border-radius: var(--radius); overflow: hidden; }
/* Logo cards: a larger logo instead of the name; the kinds of goods sit beside it. */
/* Every logo file is the same 500x300 canvas (tools/normalize-logos.py), so one box fits them all. */
.brand-card.has-logo { grid-template-columns: 110px minmax(0, 1fr); column-gap: 14px; min-height: 86px; }
.brand-card.has-logo .brand-card-media { width: 110px; height: 66px; }
.brand-card.has-logo .brand-card-media img { width: 110px; height: 66px; max-width: none; max-height: none; }
.brand-card.has-logo strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.brand-card.has-logo span { grid-row: 1 / span 2; align-self: center; }
/* Narrow phones: a slightly smaller logo box, so the longest kind of goods still fits as whole words. */
@media (max-width: 379px) {
  .brand-card.has-logo { grid-template-columns: 85px minmax(0, 1fr); column-gap: 12px; min-height: 76px; }
  .brand-card.has-logo .brand-card-media, .brand-card.has-logo .brand-card-media img { width: 85px; height: 51px; }
}
.brand-card { position: relative; }
.brands-note { margin-top: 14px; }


@media (min-width: 430px) {
  .nav-toggle span { display: inline; }
}

@media (min-width: 560px) {
  .site .header-grid {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    grid-template-areas:
      "brand lang toggle cta"
      "nav   nav  nav    nav";
  }
  .site .header-cta { display: inline-flex; }
  .subnav-row { justify-content: flex-start; gap: 4px 28px; }
  .company-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 720px) {
  .about-stack .about-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 40px; max-width: 46rem; }
  .about-stack .about-facts { border-bottom: 1px solid var(--line); }
  .about-stack .about-fact { border-bottom: 0; }
  .ship-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
  .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
  .dir-body { padding: 26px 26px 28px; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .company-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .company-panel { padding: 24px 24px 26px; }
  /* two cards in a row only from here: next to a 110px logo the kinds of goods need room for whole words */
  .brand-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (min-width: 960px) {
  .site .header-grid {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    grid-template-areas:
      "brand lang toggle cta"
      "nav   nav  nav    nav";
    padding-bottom: 14px;
  }
  .site .nav { margin-top: 14px; padding: 4px 0 0; border-top: 1px solid var(--line); }
  .site .hero.home-hero-section { padding-top: 64px; }
  .site .hero h1.home-title { font-size: 3.1rem; }
  .dir-grid { gap: 24px; margin-top: 48px; }
  .dir-body h2 { font-size: 1.7rem; }
  .process { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; border-top: 0; }
  .process li { grid-template-columns: minmax(0, 1fr); row-gap: 8px; align-content: start; padding: 20px 0 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .process li::before { grid-row: auto; margin-bottom: 4px; }
  .process strong { align-self: start; }
  .process span { grid-column: 1; }
  .brand-group { padding: 30px 0; }
  .company-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .brand-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
}

/* Four links fit in one row from here on. */
@media (min-width: 1240px) {
  .site .header-grid {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "brand nav lang cta";
  }
  .nav-toggle { display: none; }
  .site .nav, .site .nav.is-open { display: flex; flex-direction: row; justify-content: center; gap: 4px 28px; margin-top: 0; padding: 0; border-top: 0; }
  .site .nav a { min-height: 44px; border-bottom: 0; font-size: 0.98rem; }
}

@media (max-width: 359px) {
  .site .actions-multi { grid-template-columns: minmax(0, 1fr); }
  .nav-toggle { padding: 0 9px; }
  .subnav a { font-size: 0.84rem; }
}
