/*
Theme Name: RFX Industries
Author: RFX Industries
Description: Responsive red, black, and white WordPress theme for certified welding, custom fabrication, and design.
Version: 2.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rfx-industries
*/
:root{--red:#d71920;--black:#080808;--panel:#121212;--white:#fff;--muted:#c6c6c6;--max:1180px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:80px}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:#171717;line-height:1.65}
a{color:inherit}.wrap{width:min(var(--max),calc(100% - 40px));margin:auto}
.site-header{background:#050505;color:#fff;border-bottom:3px solid var(--red);position:relative;z-index:10}
.header-inner{min-height:84px;display:flex;align-items:center;justify-content:space-between;gap:25px}
.brand{display:flex;align-items:center;max-width:245px}.brand img{display:block;width:100%;height:auto;max-height:70px;object-fit:contain}
.nav{display:flex;align-items:center;gap:25px}.nav a{color:#fff;text-decoration:none;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.nav a:hover{color:#ff4b51}.nav .quote-link{background:var(--red);padding:12px 16px;border-radius:2px}
.menu-toggle{display:none;background:transparent;color:white;border:1px solid #555;border-radius:3px;padding:8px 11px;font-size:21px}
.hero{color:white;background-position:center;background-size:cover;min-height:560px;display:flex;align-items:center;padding:90px 0}
.kicker{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#ff343b;font-weight:900}.hero h1{max-width:760px;font-size:clamp(38px,6vw,70px);line-height:1.02;letter-spacing:-.035em;text-transform:uppercase;margin:16px 0 22px}.hero h1 span{display:block;color:var(--red)}.hero p{max-width:590px;color:#e3e3e3;font-size:18px;margin:0 0 28px}
.actions{display:flex;gap:12px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 19px;background:var(--red);border:2px solid var(--red);color:white;text-decoration:none;text-transform:uppercase;letter-spacing:.06em;font-size:12px;font-weight:900;border-radius:2px}.btn:hover{background:#ad1016;border-color:#ad1016;color:white}.btn-outline{background:transparent;border-color:white}.btn-outline:hover{background:white;color:#111;border-color:white}
.trustbar{background:#101010;color:#fff;border-bottom:1px solid #333}.trust-inner{display:grid;grid-template-columns:repeat(4,1fr)}.trust-item{padding:20px 14px;text-align:center;border-right:1px solid #333;font-size:12px;text-transform:uppercase;letter-spacing:.07em;font-weight:800}.trust-item:last-child{border:0}.trust-item b{color:var(--red);margin-right:7px}
.section{padding:78px 0}.dark{background:var(--black);color:white}.light{background:#f4f4f4}.eyebrow{color:var(--red);font-size:12px;font-weight:900;letter-spacing:.15em;text-transform:uppercase}.heading{font-size:clamp(30px,4vw,45px);line-height:1.1;text-transform:uppercase;letter-spacing:-.025em;margin:9px 0 15px}.lead{max-width:760px;color:#656565;font-size:16px}.dark .lead{color:#c8c8c8}.center{text-align:center}.center .lead{margin-inline:auto}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:34px}.card{background:#fff;border:1px solid #ddd;border-top:4px solid var(--red);padding:26px;box-shadow:0 8px 24px rgba(0,0,0,.04)}.dark .card{background:#141414;border-color:#2d2d2d;color:#fff}.card .number{font-size:11px;color:var(--red);font-weight:900;letter-spacing:.15em}.card h3{font-size:20px;text-transform:uppercase;line-height:1.2;margin:10px 0}.card p{font-size:14px;color:#666;margin:0}.dark .card p{color:#c6c6c6}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}.work-photo{min-height:360px;background-position:center;background-size:cover;border:1px solid #333}.checks{list-style:none;padding:0;margin:24px 0}.checks li{padding:7px 0 7px 27px;position:relative}.checks li:before{content:'✓';position:absolute;left:0;color:var(--red);font-weight:900}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:30px}.gallery-item{min-height:210px;display:flex;align-items:end;padding:18px;color:#fff;text-decoration:none;background-size:cover;background-position:center;position:relative;isolation:isolate;border:1px solid #333}.gallery-item:before{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.85),transparent 80%);z-index:-1}.gallery-item strong{text-transform:uppercase;font-size:15px}
.cta{background:var(--red);color:#fff;padding:48px 0}.cta-inner{display:flex;justify-content:space-between;align-items:center;gap:25px}.cta h2{font-size:clamp(27px,4vw,40px);line-height:1.1;text-transform:uppercase;margin:0}.cta p{margin:8px 0 0;color:#ffe0e0}.cta .btn{background:#fff;color:#111;border-color:#fff;white-space:nowrap}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}.contact-box{padding:26px;background:#141414;border-left:4px solid var(--red)}.contact-box a{color:white}.contact-box p{margin:0 0 18px}.contact-box p:last-child{margin-bottom:0}
.footer{background:#050505;color:white;padding:30px 0;border-top:1px solid #333}.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:20px}.footer-logo{width:180px;max-height:70px;object-fit:contain}.footer small{color:#aaa}
.page-content{min-height:40vh;padding:55px 0}.page-content a{color:var(--red)}
@media(max-width:820px){.header-inner{min-height:74px;flex-wrap:wrap;padding:10px 0}.brand{max-width:190px}.brand img{max-height:55px}.menu-toggle{display:block}.nav{display:none;flex-basis:100%;flex-direction:column;align-items:stretch;gap:0;padding-bottom:10px}.nav.open{display:flex}.nav a{padding:13px 0;border-top:1px solid #292929}.nav .quote-link{text-align:center;padding:13px;margin-top:8px}.hero{min-height:480px;padding:70px 0}.trust-inner{grid-template-columns:repeat(2,1fr)}.trust-item:nth-child(2){border-right:0}.trust-item:nth-child(-n+2){border-bottom:1px solid #333}.cards{grid-template-columns:1fr}.two-col,.contact-grid{grid-template-columns:1fr;gap:28px}.gallery{grid-template-columns:repeat(2,1fr)}.cta-inner{align-items:flex-start;flex-direction:column}.footer-inner{align-items:flex-start;flex-direction:column}}
@media(max-width:500px){.wrap{width:calc(100% - 28px)}.hero{min-height:450px}.hero p{font-size:16px}.gallery{grid-template-columns:1fr}.gallery-item{min-height:180px}.section{padding:58px 0}.trust-item{font-size:10px;padding:16px 6px}}

/* Streamlined homepage: clear heading contrast on dark backgrounds */
.section.dark .heading{color:#fff;}
.section.light .heading{color:#161616;}

/* Editable dedicated pages and quote request form */
.rfx-page-hero{padding:70px 0 55px}.rfx-page-editor{line-height:1.8}.rfx-contact-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(240px,1fr);gap:48px}.rfx-contact-sidebar{background:#fff;padding:26px;border-top:4px solid var(--red);align-self:start}.rfx-quote-form{display:grid;gap:17px}.rfx-quote-form label{display:grid;gap:7px;font-weight:700;font-size:14px}.rfx-quote-form label span{color:#c01922}.rfx-quote-form input:not([type=checkbox]),.rfx-quote-form textarea,.rfx-quote-form select{width:100%;padding:13px;border:1px solid #bbb;border-radius:3px;background:white;color:#171717;font:inherit;box-sizing:border-box}.rfx-quote-form input:focus,.rfx-quote-form textarea:focus,.rfx-quote-form select:focus{outline:2px solid var(--red);outline-offset:1px}.rfx-form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.rfx-quote-form small,.rfx-form-note{font-weight:400;color:#666;font-size:12px}.rfx-quote-form .rfx-consent{display:flex;align-items:center;gap:10px;font-weight:400}.rfx-quote-form .btn{justify-self:start;cursor:pointer}.rfx-honeypot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.rfx-alert{padding:14px;border-left:4px solid #d42b33;background:#fff1f1;margin-bottom:20px}.rfx-success{border-color:#238447;background:#eaf9ef}@media(max-width:820px){.rfx-contact-layout,.rfx-form-row{grid-template-columns:1fr}}
