/* =========================================================
   BRENZ TEXTURES — CSS-generated stand-ins for real
   store-photo textures. Flagged slots in HTML use
   .brenz-tex-* classes. Real textures drop in via
   --brenz-tex-* CSS variables (background-image URLs) later.
   ========================================================= */

:root {
  /* Real-photo texture overrides (set these later) */
  --brenz-tex-sheet-metal: none;
  --brenz-tex-concrete:    none;
  --brenz-tex-brick:       none;
  --brenz-tex-subway:      none;
}

/* ---------- Default site-wide grain ----------
   Subtle paper-grain. Sits over any section background.
   3–6% opacity range so it reads as depth, not pattern. */
.brenz-tex-grain-dark {
  position: relative;
  isolation: isolate;
}
.brenz-tex-grain-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.85 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.brenz-tex-grain-dark > * { position: relative; z-index: 1; }

.brenz-tex-grain-light {
  position: relative;
  isolation: isolate;
}
.brenz-tex-grain-light::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.12  0 0 0 0 0.08  0 0 0 0.65 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.brenz-tex-grain-light > * { position: relative; z-index: 1; }


/* ---------- Feature texture: BLACK PERFORATED SHEET METAL ----------
   The premium hero texture. Real photo flagged for upload via
   --brenz-tex-sheet-metal. CSS stand-in: tight perforation grid
   over rich black with a slight vignette.  */
.brenz-tex-sheet-metal {
  position: relative;
  isolation: isolate;
  background-color: #0a0a0a;
}
.brenz-tex-sheet-metal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* Real photo if provided; falls back to the CSS pattern below. */
  background-image: var(--brenz-tex-sheet-metal),
    radial-gradient(circle at center, rgba(255,255,255,0.10) 1.4px, transparent 2px),
    radial-gradient(circle at center, rgba(0,0,0,0.55) 1.6px, transparent 2.2px),
    linear-gradient(180deg, #0e0e0e 0%, #050505 100%);
  background-size: cover, 14px 14px, 14px 14px, 100% 100%;
  background-position: center, 0 0, 1px 1px, 0 0;
  opacity: 0.85;
}
.brenz-tex-sheet-metal::after {
  /* Subtle vignette so type sits well */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.55) 100%);
}
.brenz-tex-sheet-metal > * { position: relative; z-index: 1; }


/* ---------- Feature texture: CONCRETE / NICHIHA BOARD ----------
   Subtle grain for dark content sections generally. */
.brenz-tex-concrete {
  position: relative;
  isolation: isolate;
  background-color: #1a1a1a;
}
.brenz-tex-concrete::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: var(--brenz-tex-concrete),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='420'><filter id='c'><feTurbulence type='fractalNoise' baseFrequency='0.013 0.022' numOctaves='3' seed='6'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.17  0 0 0 0 0.16  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23c)'/></svg>"),
    linear-gradient(180deg, #1c1c1c 0%, #131313 100%);
  background-size: cover, 600px 600px, 100% 100%;
  background-repeat: no-repeat, repeat, no-repeat;
  opacity: 0.7;
}
.brenz-tex-concrete > * { position: relative; z-index: 1; }


/* ---------- Feature texture: BRICK ----------
   Warm accent. Earthy clay-red brick courses with mortar lines. */
.brenz-tex-brick {
  position: relative;
  isolation: isolate;
  background-color: #2a1410;
}
.brenz-tex-brick::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: var(--brenz-tex-brick),
    /* mortar courses */
    repeating-linear-gradient(0deg,
      rgba(0,0,0,0.45) 0px, rgba(0,0,0,0.45) 3px,
      transparent 3px, transparent 56px),
    /* mortar uprights, offset every other course via two stripes */
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.4) 0px, rgba(0,0,0,0.4) 3px,
      transparent 3px, transparent 120px),
    /* brick body variation */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='480'><filter id='b'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.25  0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23b)'/></svg>"),
    linear-gradient(140deg, #401d12 0%, #2a0f08 60%, #1a0805 100%);
  background-size: cover, 100% 56px, 240px 100%, 480px 480px, 100% 100%;
  background-repeat: no-repeat, repeat, repeat, repeat, no-repeat;
  opacity: 0.95;
}
.brenz-tex-brick::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
}
.brenz-tex-brick > * { position: relative; z-index: 1; }


/* ---------- Feature texture: WHITE SUBWAY TILE ----------
   Light sections. Off-white tiles with grout lines + subtle ceramic sheen. */
.brenz-tex-subway {
  position: relative;
  isolation: isolate;
  background-color: #F8F8F2;
}
.brenz-tex-subway::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: var(--brenz-tex-subway),
    /* horizontal grout */
    repeating-linear-gradient(0deg,
      rgba(0,0,0,0.10) 0px, rgba(0,0,0,0.10) 2px,
      transparent 2px, transparent 68px),
    /* vertical grout, offset every other row handled by extra layer */
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.08) 0px, rgba(0,0,0,0.08) 2px,
      transparent 2px, transparent 136px),
    /* subtle ceramic specular */
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.6) 0%, transparent 30%),
    linear-gradient(180deg, #F4F2EC 0%, #ECE9E0 100%);
  background-size: cover, 100% 68px, 136px 100%, 600px 600px, 100% 100%;
  background-repeat: no-repeat, repeat, repeat, no-repeat, no-repeat;
  opacity: 0.95;
}
.brenz-tex-subway::after {
  /* second vertical grout layer, offset 68px down by half-period horizontally */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.08) 0px, rgba(0,0,0,0.08) 2px,
      transparent 2px, transparent 136px);
  background-size: 136px 100%;
  background-position: 68px 34px;
  mask-image: repeating-linear-gradient(0deg, black 34px, black 68px, transparent 68px, transparent 102px);
  -webkit-mask-image: repeating-linear-gradient(0deg, black 34px, black 68px, transparent 68px, transparent 102px);
  opacity: 0.75;
}
.brenz-tex-subway > * { position: relative; z-index: 1; }


/* ---------- Texture slot flag marker (devs only, hidden) ----------
   Add data-tex-slot="sheet-metal | concrete | brick | subway" so we
   can audit/visualize during dev. */
[data-tex-slot] { /* no visual */ }
