/* ============================================================
   components.css — reusable blocks: cards, form fields
   Load order: base -> layout -> components -> home -> responsive
   ============================================================ */

/* ---- CARD -------------------------------------------------------------
   One component for both product and service cards. The two used to be
   separate, declaration-for-declaration identical rule sets (.product-* and
   .service-*), so merging them changed nothing visually.

   Modifiers .card--product / .card--service carry NO declarations by design.
   They are semantic hooks so product detail pages can diverge the two later
   without touching markup. A class with no matching rules cannot affect
   rendering, which is what makes this merge provably safe.

   DO NOT change .card-grid's `gap: 1px` + `background` + `border` trio: the
   1px "gaps" ARE the visible hairline dividers between cells, revealed only
   because .card paints var(--surface) over the grid's background. Change any
   one of the three and the grid's entire ruling system disappears.
   ---------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-mid);
  border: 1px solid var(--border-mid);
}
.card {
  background: var(--surface);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--vg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover { background: #f9faf8; }
.card-media {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  overflow: hidden;
  flex-shrink: 0;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  opacity: 0.45;
}
.card-media-placeholder span {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.card-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.card-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.07em;
  line-height: 1.1;
  color: var(--vg-dark);
  margin-bottom: 6px;
}
/* Five of the six cards have this element EMPTY. It is still load-bearing:
   .card is a flex column and flex items never margin-collapse, so the 16px
   margin-bottom below is real space even with no content. Deleting the empty
   <div class="card-subtitle"></div> elements shifts those cards up 16px. */
.card-subtitle {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--vg-light);
  margin-bottom: 16px;
}
.card-desc {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 24px;
  flex: 1;
}
.card-specs {
  border-top: 1px solid var(--border-mid);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 12px;
  gap: 8px;
}
.spec-key { color: var(--text-dim); }
.spec-val { color: var(--vg); font-weight: 500; text-align: right; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.2s;
}
.card-link:hover { gap: 14px; color: var(--gold-light); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-input, .form-textarea {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  padding: 13px 16px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); opacity: 0.6; }
.form-input:focus, .form-textarea:focus {
  border-color: var(--vg);
  box-shadow: 0 0 0 3px var(--vg-glow);
}
.form-textarea { height: 130px; }
/* FORM STATUS */
#form-status {
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 12px 16px;
  display: none;
}
#form-status.success {
  display: block;
  color: var(--vg);
  border: 1px solid var(--border-mid);
  background: var(--vg-tint);
}
#form-status.error {
  display: block;
  color: #b84040;
  border: 1px solid rgba(184,64,64,0.3);
  background: rgba(184,64,64,0.05);
}

