/*
Theme Name: Codex Runtime Bridge
Theme URI: https://smartstarthomeinspections.com
Author: Codex OS
Description: WordPress bridge theme that preserves the active Codex runtime design while native WordPress, WooCommerce, and payment-plugin routes stay available.
Version: 1.0.0
Text Domain: codex-runtime-bridge
*/
:root {
  --tdg-ink: #10201a;
  --tdg-muted: #58655e;
  --tdg-line: #e3ddd3;
  --tdg-paper: #fbf7f0;
  --tdg-card: #fffdf9;
  --tdg-red: #0c3c5b;
  --tdg-red-dark: #072f49;
  --tdg-accent: #c85e24;
  --tdg-green: #183f31;
}
body {
  margin: 0;
  color: var(--tdg-ink);
  background: radial-gradient(circle at top right, rgba(200,94,36,.12), transparent 24rem), linear-gradient(180deg,#fcfbf7 0%,#f6f1e8 100%);
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
}
a { color: var(--tdg-red); }
.tdg-wp-shell {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 52px;
}
.tdg-wp-header,
.tdg-wp-footer,
.tdg-wp-panel {
  border: 1px solid rgba(216,207,194,.92);
  border-radius: 22px;
  background: rgba(255,250,244,.96);
  box-shadow: 0 18px 38px rgba(57,42,27,.08);
}
.tdg-wp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 18px;
}
.tdg-wp-brand {
  color: var(--tdg-ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.tdg-wp-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .92rem;
}
.tdg-wp-nav a {
  color: var(--tdg-ink);
  text-decoration: none;
}
.tdg-wp-panel {
  padding: 24px;
}
.tdg-wp-panel h1,
.tdg-wp-panel h2,
.tdg-wp-panel h3 {
  line-height: 1.08;
}
.button,
button,
input[type="submit"],
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, var(--tdg-red), var(--tdg-red-dark)) !important;
  color: #fffaf4 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
input,
textarea,
select {
  border: 1px solid var(--tdg-line);
  border-radius: 14px;
  padding: 10px 12px;
}
.woocommerce table.shop_table,
.woocommerce form.checkout,
.woocommerce .cart_totals,
.woocommerce .woocommerce-checkout-review-order {
  border-radius: 18px;
  background: rgba(255,250,244,.9);
}
.tdg-wp-footer {
  margin-top: 18px;
  padding: 16px 22px;
  color: var(--tdg-muted);
  font-size: .9rem;
}
@media (max-width: 720px) {
  .tdg-wp-header { align-items: flex-start; flex-direction: column; }
  .tdg-wp-shell { width: min(100% - 20px, 1160px); padding-top: 12px; }
}
