:root {
  --tfusa-navy-950: #020d19;
  --tfusa-red: #e3131b;
  --tfusa-red-bright: #ff2029;
  --tfusa-white: #ffffff;
}

html:has(body.tfusa-approved-homepage) {
  margin-top: 0 !important;
  scroll-behavior: smooth;
}

body.tfusa-approved-homepage {
  margin: 0;
  background: var(--tfusa-navy-950);
  color: var(--tfusa-white);
  font-family: Arial, Helvetica, sans-serif;
}

body.tfusa-approved-homepage #wpadminbar {
  display: none !important;
}

/* Keep legacy theme widgets and old embedded forms off the approved homepage. */
body.tfusa-approved-homepage > :not(.tfusa-site-shell):not(script):not(style):not(link):not(noscript) {
  display: none !important;
}

.tfusa-approved-homepage *,
.tfusa-approved-homepage *::before,
.tfusa-approved-homepage *::after {
  box-sizing: border-box;
}

.tfusa-approved-homepage a {
  color: inherit;
  text-decoration: none;
}

.tfusa-site-shell {
  min-height: 100svh;
  overflow: hidden;
  background: var(--tfusa-navy-950);
}

.tfusa-site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  height: 184px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px clamp(28px, 4vw, 72px);
  background: linear-gradient(180deg, rgba(2, 13, 25, 0.98), rgba(3, 18, 33, 0.92));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.26);
}

.tfusa-brand-logo {
  width: 278px;
  height: 174px;
  flex: 0 0 auto;
  background: url("temp-fence-homepage-reference.png") no-repeat 1.8% 0.6% / 603% auto;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5));
}

.tfusa-main-nav {
  display: flex;
  align-items: center;
  gap: clamp(32px, 4vw, 72px);
  font-family: "Arial Narrow", Impact, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.tfusa-main-nav a {
  position: relative;
  padding: 12px 0;
  transition: color 160ms ease;
}

.tfusa-main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 2px;
  background: var(--tfusa-red-bright);
  transition: right 160ms ease;
}

.tfusa-main-nav a:hover,
.tfusa-main-nav a:focus-visible { color: #ff5a61; }
.tfusa-main-nav a:hover::after,
.tfusa-main-nav a:focus-visible::after { right: 0; }

.tfusa-hero {
  position: relative;
  min-height: calc(100svh - 76px);
  padding: 230px clamp(28px, 4vw, 72px) 250px;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 38%, rgba(25, 68, 105, 0.28), transparent 34%),
    linear-gradient(135deg, #031323 0%, #051a2f 47%, #020d18 100%);
}

.tfusa-hero-scene {
  position: absolute;
  z-index: -3;
  inset: 184px 0 0 35%;
  background: url("temp-fence-homepage-reference.png") no-repeat right top / auto 100%;
  filter: saturate(0.92) contrast(1.05);
}

.tfusa-hero-wash {
  position: absolute;
  z-index: -2;
  inset: 184px 0 0;
  background:
    linear-gradient(90deg, #041426 0%, rgba(4, 20, 38, 0.98) 27%, rgba(4, 20, 38, 0.68) 53%, rgba(1, 8, 16, 0.12) 77%),
    linear-gradient(0deg, rgba(2, 10, 18, 0.96) 0%, rgba(2, 10, 18, 0.2) 45%, rgba(2, 10, 18, 0.22) 100%);
}

.tfusa-hero-copy {
  position: relative;
  z-index: 5;
  max-width: 760px;
}

.tfusa-eyebrow {
  margin: 0 0 14px;
  color: #fb4048;
  font: 800 15px/1 "Arial Narrow", Impact, sans-serif;
  letter-spacing: 0.24em;
}

.tfusa-hero h1 {
  margin: 0;
  color: #f5f6f7;
  font-family: "Arial Narrow", Impact, Haettenschweiler, sans-serif;
  font-size: clamp(64px, 6.6vw, 110px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.91;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.26), 0 12px 28px rgba(0, 0, 0, 0.34);
}

.tfusa-hero-subtitle {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0 0;
  color: #f4f6f9;
  font: 400 clamp(24px, 2vw, 35px)/1.25 "Arial Narrow", Impact, sans-serif;
  letter-spacing: 0.015em;
  text-shadow: 0 3px 12px #000;
}

.tfusa-hero-subtitle span { color: var(--tfusa-red-bright); font-size: 18px; }

.tfusa-action-zone {
  position: absolute;
  z-index: 10;
  inset: auto 0 0;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px clamp(22px, 6vw, 100px) 30px;
  background: linear-gradient(0deg, rgba(2, 11, 20, 1) 0%, rgba(2, 12, 23, 0.96) 58%, rgba(2, 12, 23, 0.72) 88%, transparent 100%);
}

.tfusa-action-kicker {
  margin: 0 0 18px;
  color: #f7f7f8;
  font: 800 clamp(15px, 1.45vw, 23px)/1 "Arial Narrow", Impact, sans-serif;
  letter-spacing: 0.19em;
  text-shadow: 0 3px 12px #000;
}

.tfusa-action-row {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(360px, 1.55fr) minmax(220px, 0.9fr);
  align-items: center;
  gap: 28px;
}

.tfusa-action-button {
  min-height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 18px 28px;
  border-radius: 10px;
  font: 900 clamp(20px, 1.7vw, 29px)/1.1 "Arial Narrow", Impact, sans-serif;
  letter-spacing: 0.04em;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.tfusa-action-button:hover,
.tfusa-action-button:focus-visible { transform: translateY(-3px); }
.tfusa-action-button:focus-visible { outline: 3px solid white; outline-offset: 4px; }

.tfusa-action-secondary {
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, #0c2b49, #061728);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.14);
}

.tfusa-action-secondary:hover,
.tfusa-action-secondary:focus-visible {
  background: linear-gradient(180deg, #123c65, #09233c);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.48), 0 0 20px rgba(37, 114, 170, 0.28);
}

.tfusa-action-primary {
  min-height: 98px;
  border: 2px solid #ff4d54;
  background: linear-gradient(180deg, #ef1d25, #b80710);
  font-size: clamp(28px, 2.65vw, 43px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.54), 0 0 0 4px rgba(225, 18, 28, 0.15), 0 0 24px rgba(255, 24, 35, 0.78), inset 0 1px rgba(255, 255, 255, 0.4);
}

.tfusa-action-primary:hover,
.tfusa-action-primary:focus-visible {
  background: linear-gradient(180deg, #ff2b34, #cc0913);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.58), 0 0 32px rgba(255, 28, 38, 0.92), inset 0 1px rgba(255, 255, 255, 0.45);
}

.tfusa-action-primary span:last-child { font-family: Arial, sans-serif; font-size: 1.2em; line-height: 1; }

.tfusa-confidence-bar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 48px);
  padding: 18px 24px;
  border-top: 5px solid var(--tfusa-red);
  background: linear-gradient(110deg, rgba(20, 52, 82, 0.35), transparent 25%, transparent 75%, rgba(20, 52, 82, 0.35)), #061526;
  color: #eef2f6;
  font: 800 clamp(15px, 1.35vw, 22px)/1.2 "Arial Narrow", Impact, sans-serif;
  letter-spacing: 0.12em;
  text-align: center;
}

.tfusa-confidence-bar i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--tfusa-red);
  box-shadow: 0 0 10px rgba(255, 31, 41, 0.6);
}

@media (max-width: 980px) {
  .tfusa-site-header { height: 146px; padding: 6px 22px; }
  .tfusa-brand-logo { width: 220px; height: 134px; }
  .tfusa-main-nav { display: none; }
  .tfusa-hero { min-height: calc(100svh - 68px); padding: 188px 24px 360px; }
  .tfusa-hero-scene { inset: 146px 0 0; background-position: 69% top; background-size: auto 100%; opacity: 0.72; }
  .tfusa-hero-wash {
    top: 146px;
    background: linear-gradient(90deg, rgba(3, 16, 30, 0.94), rgba(3, 16, 30, 0.62)), linear-gradient(0deg, rgba(2, 10, 18, 1) 0%, rgba(2, 10, 18, 0.25) 70%);
  }
  .tfusa-hero-copy { max-width: 680px; }
  .tfusa-hero h1 { font-size: clamp(50px, 10.4vw, 82px); }
  .tfusa-action-zone { min-height: 350px; padding: 28px 22px 30px; }
  .tfusa-action-row { grid-template-columns: 1fr; gap: 12px; }
  .tfusa-action-button,
  .tfusa-action-primary { min-height: 72px; width: 100%; font-size: 23px; }
  .tfusa-action-primary { order: -1; min-height: 88px; font-size: 31px; }
  .tfusa-confidence-bar { flex-wrap: wrap; gap: 12px 18px; font-size: 14px; }
}

@media (max-width: 560px) {
  .tfusa-site-header { height: 136px; justify-content: center; }
  .tfusa-brand-logo { width: 205px; height: 124px; }
  .tfusa-hero { padding-top: 176px; padding-bottom: 350px; }
  .tfusa-eyebrow { font-size: 12px; }
  .tfusa-hero h1 { font-size: clamp(46px, 15vw, 68px); }
  .tfusa-hero-subtitle { gap: 8px; font-size: 21px; }
  .tfusa-hero-subtitle span { display: none; }
  .tfusa-action-kicker { font-size: 13px; letter-spacing: 0.15em; }
  .tfusa-action-button,
  .tfusa-action-primary { min-height: 66px; font-size: 20px; }
  .tfusa-action-primary { min-height: 80px; font-size: 25px; }
  .tfusa-confidence-bar { flex-direction: column; }
  .tfusa-confidence-bar i { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.tfusa-approved-homepage) { scroll-behavior: auto; }
  .tfusa-approved-homepage *,
  .tfusa-approved-homepage *::before,
  .tfusa-approved-homepage *::after { transition-duration: 0.01ms !important; }
}
