/*
Theme Name: B2B Foundry
Theme URI: https://example.test/b2b-foundry
Author: Production Line Lab
Description: Lightweight block theme for repeatable B2B export websites.
Version: 0.1.0
Requires at least: 6.7
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: b2b-foundry
*/

:root {
  --foundry-shadow: 0 18px 60px rgba(10, 24, 42, 0.10);
  --foundry-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
a { text-underline-offset: 0.18em; }

.site-shell { min-height: 100vh; }
.foundry-card {
  border: 1px solid #dfe6ec;
  border-radius: var(--foundry-radius);
  background: #fff;
  box-shadow: var(--foundry-shadow);
  overflow: hidden;
}
.foundry-eyebrow {
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #d95d25;
}
.foundry-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 25%, rgba(245, 135, 66, .20), transparent 31rem),
    linear-gradient(132deg, #071522 0%, #102f49 65%, #174c68 100%);
}
.foundry-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.foundry-hero > * { position: relative; z-index: 1; }
.foundry-stat {
  border-left: 2px solid #e96f2e;
  padding-left: 1rem;
}
.foundry-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.foundry-product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid #dce5eb;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.foundry-product-card:hover { transform: translateY(-4px); box-shadow: var(--foundry-shadow); }
.foundry-product-card__image { aspect-ratio: 4 / 3; background: #edf2f5; overflow: hidden; }
.foundry-product-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foundry-product-card__body { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.foundry-product-card__category { color: #d95d25; font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.foundry-product-card__title { margin: .35rem 0 .55rem; font-size: 1.12rem; line-height: 1.25; }
.foundry-product-card__excerpt { color: #506273; font-size: .92rem; flex: 1; }
.foundry-product-card__link { margin-top: .75rem; font-weight: 700; text-decoration: none; }
.foundry-filter { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.5rem; }
.foundry-filter a { border: 1px solid #cbd6de; border-radius: 999px; padding: .48rem .8rem; text-decoration: none; font-size: .86rem; }
.foundry-specs { width: 100%; border-collapse: collapse; }
.foundry-specs th, .foundry-specs td { padding: .82rem .9rem; border-bottom: 1px solid #dfe6ec; text-align: left; }
.foundry-specs th { width: 38%; color: #52616b; font-weight: 600; }
.foundry-inquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.foundry-inquiry .full { grid-column: 1 / -1; }
.foundry-inquiry label { display: block; font-weight: 650; font-size: .88rem; margin-bottom: .35rem; }
.foundry-inquiry input, .foundry-inquiry textarea, .foundry-inquiry select {
  width: 100%; border: 1px solid #bcc9d2; border-radius: 10px; padding: .78rem .85rem; font: inherit; background: #fff;
}
.foundry-inquiry button { border: 0; border-radius: 999px; padding: .85rem 1.2rem; font-weight: 750; color: #fff; background: #d95d25; cursor: pointer; }
.foundry-notice { border-radius: 10px; padding: .75rem 1rem; background: #e8f5ee; color: #135c36; }
.foundry-whatsapp {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 30; display: inline-flex; align-items: center; gap: .5rem;
  background: #128c4c; color: #fff; text-decoration: none; border-radius: 999px; padding: .78rem 1rem; box-shadow: 0 12px 35px rgba(18,140,76,.3); font-weight: 750;
}
.foundry-footer a { color: inherit; }
.foundry-footer { overflow-wrap: anywhere; }
.site-key-machinery .wp-block-site-title { font-size: 1.55rem !important; }
.site-key-machinery .foundry-hero {
  background: radial-gradient(circle at 78% 25%, rgba(245, 135, 66, .28), transparent 30rem), linear-gradient(132deg, #06131f 0%, #163c58 62%, #1f6079 100%);
}
.site-key-machinery .foundry-whatsapp { right: auto; left: 1.25rem; }

@media (max-width: 900px) {
  .foundry-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .foundry-product-grid { grid-template-columns: 1fr; }
  .foundry-inquiry { grid-template-columns: 1fr; }
  .foundry-inquiry .full { grid-column: auto; }
  .foundry-whatsapp span { display: none; }
}
