/* TRONIX theme — burgundy #8B1E2D, charcoal #151820, white, light gray #F3F4F6 */
:root {
  --tx-brand: #8b1e2d; --tx-brand-dark: #741826; --tx-brand-soft: rgba(139, 30, 45, .08);
  --tx-ink: #151820; --tx-ink-muted: #b9bcc6; --tx-ink-line: rgba(255, 255, 255, .14);
  --tx-surface: #f3f4f6; --tx-border: #e2e4e9; --tx-input: #d4d7de; --tx-muted: #5f6370;
  --tx-line: #fff; --tx-accent: #8b1e2d; --tx-radius: 4px;
  --tx-head: "Montserrat", "Segoe UI", Arial, sans-serif; --tx-body: "Open Sans", "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--tx-body); color: var(--tx-ink); background: #fff; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--tx-head); letter-spacing: -.01em; line-height: 1.2; margin: 0; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
:focus-visible { outline: 2px solid var(--tx-brand); outline-offset: 3px; }
.tx-ink :focus-visible, .tx-brand :focus-visible { outline-color: #fff; }
[id] { scroll-margin-top: 96px; }
[hidden] { display: none !important; }

.tx-container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2rem); }
.tx-section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.tx-gray { background: var(--tx-surface); }
.tx-ink { background: var(--tx-ink); color: #fff; }
.tx-brand { background: var(--tx-brand); color: #fff; }
.tx-grid { display: grid; gap: 2.5rem; }
.tx-stack > * + * { margin-top: 1rem; }
.tx-stack { margin-top: 1.5rem; }
.tx-split .tx-stack { margin-top: 0; }
.tx-mt { margin-top: 3.5rem; } .tx-mt-sm { margin-top: 1.5rem; }
.tx-muted { color: var(--tx-muted); } .tx-ink-muted { color: var(--tx-ink-muted); }
.tx-small { font-size: .875rem; } .tx-white { color: #fff; }
.tx-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--tx-muted); }

.tx-logo { font-family: var(--tx-head); font-weight: 800; letter-spacing: .18em; font-size: 1.25rem; color: #fff; }
.tx-eyebrow { font-family: var(--tx-head); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tx-brand); display: inline-flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.tx-eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; }
.tx-ink .tx-eyebrow { color: var(--tx-ink-muted); }
.tx-ink .tx-eyebrow::before { background: var(--tx-brand); height: 2px; }
.tx-h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; }
.tx-h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; }
.tx-h3 { font-size: 1.125rem; font-weight: 700; margin-top: 1.25rem; }
.tx-h3:first-child { margin-top: 0; }
.tx-card > p { margin-top: .75rem; }
.tx-lead { margin-top: 1.25rem; max-width: 42rem; font-size: 1.125rem; color: var(--tx-ink-muted); }

/* Header */
.tx-skip { position: absolute; left: -9999px; }
.tx-skip:focus { left: 1rem; top: 1rem; position: fixed; z-index: 60; background: #fff; color: var(--tx-ink); padding: .5rem 1rem; border-radius: var(--tx-radius); }
.tx-header-space { height: 72px; }
.tx-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform .3s; }
.tx-header.is-hidden { transform: translateY(-100%); }
.admin-bar .tx-header { top: 32px; }
.tx-header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; border-bottom: 1px solid var(--tx-ink-line); }
.tx-nav { display: flex; gap: 2.25rem; }
.tx-nav-link { position: relative; padding-block: .5rem; font-size: .9rem; font-weight: 600; color: var(--tx-ink-muted); transition: color .2s; }
.tx-nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--tx-brand); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.tx-nav-link:hover, .tx-nav-link[aria-current] { color: #fff; }
.tx-nav-link:hover::after, .tx-nav-link[aria-current]::after { transform: scaleX(1); }
.tx-lang { display: flex; gap: .5rem; align-items: center; font-size: .875rem; font-weight: 600; }
.tx-lang > span { color: var(--tx-ink-line); }
.tx-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--tx-ink-line); border-radius: var(--tx-radius); }
.tx-burger[aria-expanded="true"] .tx-burger-open, .tx-burger[aria-expanded="false"] .tx-burger-close { display: none; }
.tx-burger span { display: inline-flex; }
.tx-mobile { border-bottom: 1px solid var(--tx-ink-line); padding-block: 1rem; }
.tx-mobile li a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--tx-ink-line); font-weight: 600; color: var(--tx-ink-muted); }
.tx-mobile li a[aria-current] { color: #fff; border-left: 2px solid var(--tx-brand); padding-left: .75rem; }
.tx-mobile .tx-lang { padding-top: 1rem; }
.tx-desktop { display: none; }
@media (min-width: 768px) { .tx-desktop { display: block; } .tx-burger, .tx-mobile { display: none !important; } }

/* Buttons & links */
.tx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.5rem; border-radius: var(--tx-radius); font-weight: 600; font-size: .95rem; border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.tx-btn svg, .tx-link svg { transition: transform .2s; }
.tx-btn:hover svg, .tx-link:hover svg { transform: translateX(3px); }
.tx-btn-primary { background: var(--tx-brand); color: #fff; } .tx-btn-primary:hover { background: var(--tx-brand-dark); }
.tx-btn-outline-light { border-color: var(--tx-ink-line); color: #fff; } .tx-btn-outline-light:hover { border-color: #fff; }
.tx-btn-outline { border-color: var(--tx-ink); color: var(--tx-ink); } .tx-btn-outline:hover { background: var(--tx-ink); color: #fff; }
.tx-btn-white { background: #fff; color: var(--tx-brand); } .tx-btn-white:hover { background: var(--tx-surface); }
.tx-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--tx-brand); font-size: .9rem; margin-top: 1.25rem; }
.tx-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.tx-stack .tx-link, .tx-consent .tx-link { margin-top: 0; }
.tx-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

/* Cards & icons */
.tx-card { background: #fff; border: 1px solid var(--tx-border); border-radius: var(--tx-radius); padding: 2rem; transition: border-color .25s, transform .25s; position: relative; }
.tx-card:hover { border-color: #c79aa1; transform: translateY(-2px); }
.tx-card-row { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; }
.tx-card-row .tx-link { margin-top: 0; }
.tx-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 3rem; height: 3rem; border: 1px solid rgba(139, 30, 45, .35); border-radius: var(--tx-radius); color: var(--tx-brand); background: var(--tx-brand-soft); }
.tx-cards-2 { display: grid; gap: 1.25rem; margin-top: 3rem; }
.tx-mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tx-why { display: grid; gap: 1.25rem; margin-top: 3rem; }
.tx-num { font-family: var(--tx-head); font-size: 1.5rem; font-weight: 700; color: var(--tx-brand); }
.tx-checks { margin-top: 1.25rem; font-size: .875rem; }
.tx-checks li { position: relative; padding-left: 1.75rem; margin-top: .75rem; }
.tx-checks li::before { content: ""; position: absolute; left: .15rem; top: .45em; width: .7rem; height: .4rem; border-left: 2px solid var(--tx-brand); border-bottom: 2px solid var(--tx-brand); transform: rotate(-45deg); }

/* Flow */
.tx-flow { display: grid; gap: 1.25rem; margin-top: 3rem; }
.tx-flow-step { padding: 1.5rem; }
.tx-flow-step:not(:last-child)::after { content: ""; position: absolute; left: 1.5rem; top: 100%; width: 1px; height: 1.25rem; background: var(--tx-brand); }

/* Hero / CTA / footer */
.tx-hero .tx-home-hero { padding-block: 5rem; align-items: center; }
.tx-hero-lead { margin-top: 1.5rem; font-size: 1.25rem; }
.tx-hero .tx-ink-muted { margin-top: 1rem; max-width: 36rem; }
.tx-home-hero .tx-h1 { margin-top: .5rem; }
.tx-page-hero .tx-hero-grid { padding-block: 4rem; align-items: center; }
.tx-motif { width: 100%; max-width: 32rem; margin-inline: auto; }
.tx-hero-grid .tx-motif { max-width: 20rem; opacity: .8; }
.tx-motif svg { width: 100%; height: auto; display: block; }
.tx-cta { display: grid; gap: 2rem; align-items: center; padding-block: 4rem; }
.tx-cta p { margin-top: 1rem; max-width: 42rem; opacity: .9; }
.tx-404 { padding-block: 6rem; align-items: center; }
.tx-404 .tx-ink-muted { margin-top: 1.25rem; } .tx-404 .tx-btn { margin-top: 2rem; }
.tx-footer { color: var(--tx-ink-muted); }
.tx-footer-grid { display: grid; gap: 2.5rem; padding-block: 4rem; }
.tx-footer-grid .tx-small { margin-top: 1.25rem; max-width: 28rem; }
.tx-footer-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: #fff; margin-bottom: 1rem; }
.tx-footer li { margin-top: .5rem; font-size: .875rem; }
.tx-footer a:hover, .tx-footer button:hover { color: #fff; }
.tx-footer-bottom { border-top: 1px solid var(--tx-ink-line); }
.tx-footer-row { display: flex; flex-direction: column; gap: .75rem; padding-block: 1.5rem; font-size: .75rem; }
.tx-footer-links { display: flex; gap: 1.5rem; }

/* Forms (Contact Form 7) */
.tx-form .wpcf7 { margin-top: 1.25rem; }
.tx-form p { margin-top: 1.25rem; }
.tx-form label { font-size: .875rem; font-weight: 600; }
.tx-form input:not([type="submit"]):not([type="checkbox"]), .tx-form textarea, .tx-form select { display: block; width: 100%; min-height: 48px; margin-top: .5rem; border: 1px solid var(--tx-input); border-radius: var(--tx-radius); padding: .7rem .9rem; font: inherit; background: #fff; }
.tx-form input:focus, .tx-form textarea:focus { outline: none; border-color: var(--tx-brand); box-shadow: 0 0 0 3px var(--tx-brand-soft); }
.tx-form [aria-invalid="true"] { border-color: var(--tx-brand) !important; }
.tx-form input[type="submit"] { min-height: 48px; padding: .75rem 1.5rem; border: 0; border-radius: var(--tx-radius); background: var(--tx-brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.tx-form input[type="submit"]:hover { background: var(--tx-brand-dark); }
.wpcf7-not-valid-tip { color: var(--tx-brand); font-size: .875rem; margin-top: .25rem; }
.wpcf7 form .wpcf7-response-output { margin: 1.25rem 0 0; padding: 1rem; border: 1px solid var(--tx-border); border-radius: var(--tx-radius); background: var(--tx-surface); font-size: .875rem; }

/* Prose */
.tx-prose { max-width: 48rem; }
.tx-prose > p, .tx-prose section p { margin-top: 1rem; }
.tx-prose section { margin-top: 2.5rem; }
.tx-prose h2 { font-size: 1.25rem; font-weight: 700; }
.tx-entry > * + * { margin-top: 1rem; }

/* Consent */
.tx-consent { position: fixed; z-index: 55; left: .75rem; right: .75rem; bottom: .75rem; max-width: 42rem; margin-inline: auto; background: #fff; color: var(--tx-ink); border: 1px solid var(--tx-border); border-radius: var(--tx-radius); padding: 1.5rem; font-size: .875rem; box-shadow: 0 10px 30px rgba(21, 24, 32, .12); }
.tx-consent > p { margin-top: .5rem; }
.tx-consent-prefs { border: 0; border-top: 1px solid var(--tx-border); margin: 1rem 0 0; padding: 1rem 0 0; }
.tx-consent-prefs label { display: flex; gap: .75rem; align-items: flex-start; margin-top: .5rem; }
.tx-consent-prefs input { margin-top: .3rem; accent-color: var(--tx-brand); }
.tx-consent-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* Motion */
.tx-reveal { animation: tx-reveal .7s ease both; }
@keyframes tx-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tx-motif .m-float { animation: tx-float 9s ease-in-out infinite; transform-box: fill-box; }
.tx-motif .m-float-2 { animation: tx-float 11s ease-in-out infinite reverse; transform-box: fill-box; }
.tx-motif .m-dash { stroke-dasharray: 4 6; animation: tx-dash 14s linear infinite; }
@keyframes tx-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, -8px); } }
@keyframes tx-dash { to { stroke-dashoffset: -200; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Breakpoints */
@media (max-width: 767px) { .tx-hide-mobile { display: none; } }
@media (min-width: 640px) { .tx-cards-2, .tx-why { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) {
  .tx-home-hero { grid-template-columns: 1.2fr 1fr; } .tx-hero .tx-home-hero { padding-block: 7rem; }
  .tx-hero-grid { grid-template-columns: 1.6fr 1fr; } .tx-page-hero .tx-hero-grid { padding-block: 5rem; }
  .tx-split { grid-template-columns: 1fr 1.4fr; } .tx-halves { grid-template-columns: 1fr 1fr; } .tx-service { grid-template-columns: 1.3fr 1fr; }
  .tx-cta { grid-template-columns: 2fr 1fr; padding-block: 5rem; } .tx-cta .tx-btn { justify-self: end; }
  .tx-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .tx-footer-row { flex-direction: row; justify-content: space-between; align-items: center; }
  .tx-consent { left: 1.5rem; right: 1.5rem; bottom: 1.5rem; }
}
@media (min-width: 1024px) {
  .tx-why { grid-template-columns: repeat(12, 1fr); }
  .tx-why li { grid-column: span 4; } .tx-why li:nth-child(-n+4) { grid-column: span 3; }
  .tx-flow { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .tx-flow-step:not(:last-child)::after { left: 100%; top: 2.5rem; width: 1.25rem; height: 1px; }
}
@media (max-width: 782px) { .admin-bar .tx-header { top: 46px; } }

/* Native block layout stays faithful to the theme in both editors and pages. */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
.wp-block-post-content > * { margin-block: 0; }
.wp-block-group.tx-grid, .wp-block-group.tx-cards-2, .wp-block-group.tx-why, .wp-block-group.tx-flow, .wp-block-group.tx-mini-cards, .wp-block-group.tx-cta { display: grid; }
.wp-block-group.tx-actions, .wp-block-group.tx-card-row { display: flex; }
.wp-block-button.tx-btn { padding: 0; }
.wp-block-button.tx-btn .wp-block-button__link { background: transparent; color: inherit; border-radius: var(--tx-radius); font: inherit; padding: .75rem 1.5rem; }
.tx-why > .tx-card { min-width: 0; }
.tx-static *, .tx-static { animation: none !important; }
.tx-motif-brand { color: var(--tx-brand); }
.tx-motif-ink { color: var(--tx-ink); }
.tx-motif-white { color: var(--tx-line); }
.tx-motif-gray { color: var(--tx-surface); }
.tx-motif svg [stroke]:not([stroke="none"]) { stroke: currentColor; }
.tx-icon-ink .tx-icon { color: var(--tx-ink); }
.tx-icon-white .tx-icon { color: var(--tx-line); }
.tx-icon-gray .tx-icon { color: var(--tx-muted); }
.tx-prose .wp-block-heading:not(h1) { margin-top: 2.5rem; }
.tx-mini-cards { grid-template-columns: 1fr; }
.tx-mini-cards > * { min-width: 0; }
@media (min-width: 768px) { .tx-mini-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .tx-why > .tx-card { grid-column: span 4; }
  .tx-why > .tx-card:nth-child(-n+4) { grid-column: span 3; }
}
