:root {
  --navy: #0a2245;
  --blue: #234b84;
  --blue-deep: #071a35;
  --orange: #ff7900;
  --paper: #f1f0eb;
  --white: #fff;
  --ink: #0d1c2e;
  --muted: #657083;
  --line: rgba(13, 28, 46, .14);
  --display: Lato, Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: Lato, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.hero { position: relative; min-height: 820px; height: 100vh; overflow: hidden; color: var(--white); background: var(--navy); }
.hero::before { content: ""; position: absolute; width: 64vw; height: 64vw; right: -27vw; top: -35vw; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.hero-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 7.1vw 7.1vw; mask-image: linear-gradient(90deg,#000,transparent 68%); }
.hero-copy { position: absolute; z-index: 2; top: 54%; left: 8vw; width: 46%; transform: translateY(-50%); }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 38px; font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { width: 30px; height: 2px; background: var(--orange); }
.hero h1, section h2 { margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -.055em; text-transform: uppercase; line-height: .82; }
.hero h1 { max-width: 720px; font-size: clamp(72px, 7.4vw, 138px); }
.hero h1 em, section h2 em { color: var(--orange); font-style: normal; }
.hero-lead { max-width: 540px; margin: 30px 0 30px; font-size: clamp(16px, 1.1vw, 19px); line-height: 1.6; color: rgba(255,255,255,.76); }
.hero-actions { display: flex; align-items: center; gap: 34px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 36px; min-height: 58px; padding: 0 25px; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; transition: transform .25s, background .25s; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--white); background: var(--orange); }
.text-link { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.text-link span { margin-left: 12px; color: var(--orange); }

.hero-product { position: absolute; z-index: 1; right: -2vw; top: 12%; width: 51vw; height: 78%; }
.hero-product > img { position: absolute; z-index: 2; width: min(630px, 76%); height: min(630px, 76%); right: 1vw; top: 50%; object-fit: cover; object-position: 50% 36%; clip-path: polygon(25% 0, 100% 0, 100% 80%, 76% 100%, 0 100%, 0 25%); filter: contrast(1.06) saturate(.76); transform: translateY(-50%) rotate(2deg); box-shadow: 0 28px 100px rgba(0,0,0,.3); }
.orange-disc { position: absolute; z-index: 1; width: 72%; aspect-ratio: 1; right: 10%; top: 50%; border-radius: 50%; background: var(--orange); transform: translateY(-50%); box-shadow: 0 0 100px rgba(255,121,0,.16); }
.product-orbit { position: absolute; z-index: 3; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.orbit-one { width: 86%; aspect-ratio: 1; right: 2%; top: 50%; transform: translateY(-50%); }
.orbit-two { width: 100%; aspect-ratio: 1; right: -5%; top: 50%; transform: translateY(-50%); border-color: rgba(255,121,0,.42); }
.product-label { position: absolute; z-index: 4; display: flex; gap: 18px; right: 6%; bottom: 5%; color: var(--white); }
.product-label > span { color: var(--orange); font: 800 11px var(--sans); }
.product-label p { margin: 0; padding-left: 17px; border-left: 1px solid rgba(255,255,255,.35); font: 700 11px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.hero-foot { position: absolute; z-index: 3; left: 4vw; right: 4vw; bottom: 26px; display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.52); }
.scroll-note span { margin-left: 10px; color: var(--orange); }

.intro { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 4vw; padding: 130px 8vw 110px; background: var(--paper); }
.section-kicker { color: var(--blue); }
.section-kicker span { color: var(--orange); }
.intro-heading { grid-column: 2 / 4; }
.intro h2, .feature h2, .contact h2 { font-size: clamp(48px, 4.6vw, 82px); color: var(--navy); }
.intro h2 strong { color: var(--blue); font-weight: inherit; }
.intro-copy { grid-column: 2 / 3; padding-top: 36px; }
.intro-copy p, .feature-copy > p { margin: 0 0 34px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.arrow-link { display: inline-flex; gap: 22px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.stats { grid-column: 1 / 4; display: grid; grid-template-columns: repeat(3,1fr); margin-top: 70px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { display: flex; align-items: baseline; gap: 18px; padding: 28px 32px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats strong { color: var(--orange); font: 900 clamp(44px,4.3vw,70px)/1 var(--display); letter-spacing: -.05em; }
.stats span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.catalog { padding: 120px 4vw; color: var(--white); background: var(--blue-deep); }
.catalog-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8vw; align-items: end; margin: 0 4vw 70px; }
.section-kicker-light { color: rgba(255,255,255,.66); }
.catalog h2, .download h2 { font-size: clamp(56px, 5.6vw, 98px); }
.catalog h2 { color: var(--white); }
.catalog-tools { max-width: 500px; padding-bottom: 8px; }
.catalog-tools > p, .download-action > p { color: rgba(255,255,255,.62); font-size: 16px; line-height: 1.7; }
.search-box { display: flex; margin-top: 27px; border-bottom: 1px solid rgba(255,255,255,.34); }
.search-box input { flex: 1; padding: 16px 0; color: var(--white); background: transparent; border: 0; outline: 0; font: 13px var(--sans); }
.search-box input::placeholder { color: rgba(255,255,255,.5); }
.search-box button { width: 52px; color: var(--white); background: transparent; border: 0; font-size: 26px; cursor: pointer; }
.category-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 340px; gap: 2px; }
.category { position: relative; overflow: hidden; padding: 28px; background: #fff; transition: filter .25s; }
.category:hover { filter: brightness(1.08); }
.category:nth-child(1) { grid-column: span 5; }
.category:nth-child(2) { grid-column: span 3; }
.category:nth-child(3) { grid-column: span 4; }
.category:nth-child(4) { grid-column: span 4; }
.category:nth-child(5) { grid-column: span 8; }
.category img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.category:hover img { transform: scale(1.04); }
.category::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(0,0,0,.04), rgba(0,0,0,.66)); }
.category-blue { color: var(--white); background: var(--blue); }
.category-blue::after, .category-pale::after, .category-orange::after { display: none; }
.category-pale { color: var(--navy); background: #dfe3e6; }
.category-orange { color: var(--navy); background: var(--orange); }
.category-number, .category-title, .category-arrow { position: absolute; z-index: 2; }
.category-number { top: 28px; left: 28px; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.category-title { left: 28px; bottom: 26px; font: 900 clamp(26px,2.6vw,42px)/.94 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.category-arrow { right: 28px; bottom: 28px; font-size: 24px; }
.category-icon { position: absolute; right: 12%; top: 19%; width: 116px; height: 116px; opacity: .85; }
.hex-icon { border: 24px solid var(--navy); clip-path: polygon(25% 7%,75% 7%,100% 50%,75% 93%,25% 93%,0 50%); }
.bolt-icon { border: 24px solid rgba(255,255,255,.75); border-radius: 50%; }
.bolt-icon::after { content:""; position:absolute; width: 28px; height: 92px; left: 20px; top: -11px; background: var(--blue); border: 8px solid rgba(255,255,255,.75); transform: rotate(42deg); }
.screw-icon { width: 28px; height: 138px; right: 24%; top: 15%; border-radius: 4px; background: var(--blue); transform: rotate(38deg); }
.screw-icon::before { content:""; position:absolute; width: 78px; height: 28px; left: -25px; top: -8px; border-radius: 50%; background: var(--blue); }
.screw-icon::after { content:""; position:absolute; inset: 32px -7px 8px; background: repeating-linear-gradient(0deg,transparent 0 8px,var(--paper) 8px 11px); }

.feature { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 760px; background: #fff; }
.feature > *, .catalog-head > *, .download > * { min-width: 0; }
.feature-photo { position: relative; min-height: 620px; overflow: hidden; }
.feature-photo::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.55)); }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(1.08); }
.photo-caption { position: absolute; z-index: 2; left: 5vw; bottom: 38px; color: var(--white); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.feature-copy { padding: 110px 8vw 90px 7vw; }
.feature-copy h2 { margin-bottom: 40px; }
.feature-copy ul { list-style: none; margin: 45px 0 0; padding: 0; border-top: 1px solid var(--line); }
.feature-copy li { display: flex; gap: 25px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.feature-copy li span { color: var(--orange); }

.download { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 8vw; align-items: end; overflow: hidden; padding: 120px 8vw; color: var(--white); background: var(--orange); }
.download .section-kicker span { color: var(--navy); }
.download h2 em { color: var(--navy); }
.download-action { position: relative; z-index: 2; }
.button-light { margin-top: 24px; color: var(--navy); background: var(--white); }
.download-mark { position: absolute; right: 0; bottom: -25%; color: rgba(255,255,255,.1); font: 900 38vw/1 var(--display); }

.contact { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8vw; padding: 120px 10vw; background: var(--paper); }
.contact-copy p { max-width: 560px; margin-top: 34px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.contact-circle { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 260px; aspect-ratio: 1; border-radius: 50%; color: var(--white); background: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; transition: transform .3s, background .3s; }
.contact-circle:hover { transform: rotate(-4deg) scale(1.03); background: var(--blue); }
.contact-circle strong { margin-top: 18px; color: var(--orange); font-size: 28px; }

@media (max-width: 1100px) {
  .hero-copy { top: 53%; left: 5vw; width: 52%; }
  .hero-product { right: -12vw; width: 62vw; opacity: .82; }
  .intro { grid-template-columns: .7fr 1.3fr; }
  .intro-heading { grid-column: 1/-1; }
  .intro-copy { grid-column: 2; }
  .stats { grid-column: 1/-1; }
}

@media (max-width: 820px) {
  .hero { min-height: 780px; height: 100svh; }
  .hero-copy { top: 48%; width: 90%; }
  .hero h1 { font-size: clamp(62px, 18vw, 116px); }
  .hero-lead { max-width: 90%; font-size: 16px; }
  .hero-product { right: -35vw; top: 26%; width: 92vw; height: 60%; opacity: .48; }
  .product-label { display: none; }
  .hero-foot { left: 22px; right: 22px; }
  .scroll-note { display: none; }
  .intro, .catalog, .feature-copy, .download, .contact { padding: 85px 24px; }
  .intro { display: block; }
  .intro h2, .download h2 { font-size: clamp(44px, 12vw, 62px); overflow-wrap: normal; word-break: normal; }
  .contact-copy { min-width: 0; }
  .contact h2 { font-size: clamp(39px, 10.5vw, 52px); line-height: .94; overflow-wrap: normal; word-break: normal; }
  .intro-copy { margin-top: 12px; }
  .stats { grid-template-columns: 1fr; }
  .stats div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats div:last-child { border-bottom: 0; }
  .catalog-head, .download { grid-template-columns: 1fr; }
  .catalog-head { margin: 0 0 50px; }
  .category-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: 290px; }
  .category:nth-child(n) { grid-column: 1; }
  .feature { grid-template-columns: 1fr; }
  .feature-copy h2 { font-size: clamp(48px, 14vw, 74px); }
  .feature-photo { min-height: 500px; }
  .contact { grid-template-columns: 1fr; }
  .contact-circle { width: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.rufix-home .hero h1 { color: #fff; }
.rufix-home .rufix-main { margin: 0; padding: 0; }

/* Gutenberg adds layout utility classes to Columns blocks. These selectors
   keep the intended Rufix grids without moving page structure into PHP. */
.rufix-main .feature,
.rufix-main .download,
.rufix-main .contact {
  display: grid;
}

.rufix-main .wp-block-column {
  min-width: 0;
}

@media (max-width: 820px) {
  .rufix-main .feature,
  .rufix-main .download,
  .rufix-main .contact {
    grid-template-columns: 1fr;
  }
}
