/*
Theme Name: FORTRIM Industrial Wheels
Author: FORTRIM
Description: Fresh industrial B2B lead-generation theme for 1-piece, 2-piece, and off-road forged wheels.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: fortrim-industrial-wheels
*/

:root {
  --bg: #f5f8fb;
  --panel: #ffffff;
  --panel-2: #eef3f7;
  --line: #dce3ea;
  --muted: #61707f;
  --text: #16212c;
  --accent: #f45113;
  --accent-dark: #d93b05;
  --accent-2: #2472b8;
  --metal: #8c98a5;
  --ink: #0f1720;
  --soft-blue: #eaf4ff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(36, 114, 184, .42);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 9, .97);
  border-bottom: 1px solid #242a31;
  backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: grid;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}
.brand strong { font-size: 28px; }
.brand span { color: var(--muted); font-size: 11px; margin-top: 7px; }
.brand-wrap { flex: 0 0 auto; }
.brand-logo,
.custom-logo-link { display: block; line-height: 0; }
.brand-logo img { width: 142px; height: auto; max-height: 96px; object-fit: contain; }
.custom-logo { width: auto; max-width: 142px; height: auto; max-height: 96px; object-fit: contain; }
.nav {
  color: #f5f7f9;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.nav-toggle { display: none; }
.nav a:hover { color: #ff7a3d; }
.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
}
.button:hover,
button:hover,
input[type="submit"]:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.secondary {
  background: #fff;
  border-color: #b9c4ce;
  color: var(--ink);
}
.button.secondary:hover { border-color: var(--accent-2); background: var(--soft-blue); color: var(--accent-2); }

.hero,
.page-banner {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.84) 48%, rgba(255,255,255,.38) 100%),
    radial-gradient(circle at 73% 34%, rgba(36,114,184,.22), transparent 30%),
    linear-gradient(135deg, #f7fbff 0%, #dbe6ef 42%, #aebbc7 100%);
  overflow: hidden;
}
.hero {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 42%, rgba(255,255,255,.26) 72%, rgba(255,255,255,.08) 100%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}
.hero::after,
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .62;
  background:
    repeating-linear-gradient(105deg, transparent 0 34px, rgba(22,33,44,.05) 35px 36px),
    radial-gradient(circle at 78% 48%, rgba(255,255,255,.62), transparent 0 19%, transparent 20%);
}
.hero { min-height: 690px; display: grid; align-items: center; }
.hero-inner,
.section-inner,
.banner-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}
.eyebrow {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .98;
  text-transform: uppercase;
}
.hero p {
  max-width: 610px;
  color: #405061;
  font-size: 19px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.section { padding: 92px 0; border-top: 1px solid var(--line); background: #fff; }
.section.alt { background: #f1f6fa; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.section h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  text-transform: uppercase;
}
.section-head p { max-width: 440px; margin-bottom: 0; color: var(--muted); }

.category-grid,
.advantages-grid,
.capability-grid,
.market-grid,
.product-grid {
  display: grid;
  gap: 22px;
}
.category-grid { grid-template-columns: repeat(3, 1fr); }
.advantages-grid { grid-template-columns: repeat(4, 1fr); }
.capability-grid { grid-template-columns: 1.2fr .8fr; }
.market-grid { grid-template-columns: .9fr 1.1fr; align-items: stretch; }
.product-grid { grid-template-columns: repeat(3, 1fr); }

.category-card,
.advantage,
.capability-panel,
.market-panel,
.product-card,
.rfq-box,
.spec-box {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(24, 42, 61, .07);
}
.category-card {
  min-height: 330px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  background: #17212b;
  color: #fff;
}
.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,18,25,.04) 22%, rgba(10,18,25,.36) 58%, rgba(10,18,25,.9) 100%),
    var(--category-image) var(--category-position, center) / var(--category-size, cover) no-repeat;
  transition: transform .24s ease;
}
.product-thumb.fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, transparent 0 64px, rgba(36,114,184,.22) 65px 69px, transparent 70px),
    radial-gradient(circle at 50% 45%, transparent 0 105px, rgba(36,114,184,.12) 106px 112px, transparent 113px),
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(220,231,240,.28) 42%, transparent 72%);
}
.category-card > * { position: relative; z-index: 1; }
.category-card:hover::before { transform: scale(1.04); }
.category-card:hover { border-color: #9fb8ce; }
.category-card h3 { color: #fff; }
.category-card p { color: rgba(255,255,255,.86); }
.category-card h3,
.product-card h3 { margin-bottom: 10px; text-transform: uppercase; }
.advantage p,
.capability-panel p,
.market-panel p,
.product-card p { color: var(--muted); margin-bottom: 0; }

.advantage { padding: 26px; min-height: 190px; }
.advantage b {
  display: block;
  color: var(--accent);
  font-size: 34px;
  margin-bottom: 16px;
}
.capability-panel,
.market-panel { padding: 34px; }
.capability-list,
.market-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}
.capability-list li,
.market-list li {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: #263442;
  font-weight: 800;
}

.page-banner { padding: 120px 0 82px; }
.page-banner h1 { margin-bottom: 12px; }
.page-banner p { max-width: 690px; color: #405061; font-size: 18px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}
.filter-chip {
  border: 1px solid #cfd8e2;
  background: #fff;
  color: #203040;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.filter-chip:hover,
.filter-chip.active { border-color: var(--accent-2); background: var(--accent-2); color: #fff; }

.product-card { position: relative; overflow: hidden; }
.product-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #eaf0f5;
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease;
}
.product-body { padding: 24px; }
.product-meta {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.product-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 32, .58);
  opacity: 0;
  transition: opacity .2s ease;
}
.product-card:hover .product-overlay { opacity: 1; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.empty-products {
  grid-column: 1 / -1;
  padding: 48px;
  border: 1px solid var(--line);
  background: #f7fafc;
  text-align: center;
}
.empty-products h2 { margin-bottom: 12px; }
.empty-products p { color: var(--muted); margin-bottom: 24px; }
.navigation.pagination { margin-top: 34px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
  min-width: 42px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
  font-weight: 800;
}
.page-numbers.current,
.page-numbers:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

.single-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;
  align-items: start;
}
.gallery-main {
  background: #eaf0f5;
  border: 1px solid var(--line);
  aspect-ratio: 1 / .82;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main-button {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-transform: none;
}
.gallery-main-button:hover { background: transparent; }
.gallery-zoom-label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 11px;
  background: rgba(15, 23, 32, .78);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.gallery-fallback {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f7fbff, #dce7ef);
}
.gallery-fallback::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 22px solid #94a4b2;
  box-shadow: inset 0 0 0 30px #f6f9fb, 0 0 70px rgba(36,114,184,.18);
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.gallery-thumb {
  min-height: 0;
  padding: 0;
  border: 2px solid transparent;
  background: #eef3f7;
  color: inherit;
  text-transform: none;
}
.gallery-thumb:hover { background: #eef3f7; border-color: #9fb8ce; }
.gallery-thumb.active { border-color: var(--accent-2); }
.gallery-thumb img {
  aspect-ratio: 1 / .78;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.gallery-dialog {
  width: min(1100px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: #0c1218;
  overflow: visible;
}
.gallery-dialog::backdrop { background: rgba(5, 9, 13, .86); }
.gallery-dialog img {
  width: 100%;
  max-height: calc(100vh - 32px);
  object-fit: contain;
}
.gallery-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-color: rgba(255,255,255,.55);
  background: rgba(12,18,24,.82);
  font-size: 28px;
  line-height: 1;
}
.gallery-dialog-close:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.product-summary .category-label {
  color: var(--accent-2);
  font-weight: 900;
  text-transform: uppercase;
}
.product-summary h1 {
  font-size: clamp(36px, 5vw, 62px);
  margin: 10px 0 18px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  background: #fff;
}
.spec-table th,
.spec-table td {
  border: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
}
.spec-table th {
  width: 34%;
  color: #14202b;
  text-transform: uppercase;
  font-size: 12px;
}
.spec-table td { color: #405061; }

.rfq-section { background: linear-gradient(135deg, #eef6fc, #ffffff); }
.rfq-box {
  padding: 36px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 34px;
  align-items: start;
}
.rfq-copy p { color: var(--muted); }
.rfq-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.rfq-form-wrap { min-width: 0; }
.rfq-form .full { grid-column: 1 / -1; }
.rfq-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.rfq-notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid;
  font-weight: 700;
}
.rfq-notice.success { border-color: #70a988; background: #edf8f1; color: #1e5b36; }
.rfq-notice.error { border-color: #d98d91; background: #fff1f1; color: #8f1e24; }
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 600;
  line-height: 1.45;
  text-transform: none;
}
.consent input { width: auto; margin-top: 3px; }
.consent a { color: var(--accent-2); text-decoration: underline; }
label {
  display: grid;
  gap: 8px;
  color: #263442;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #cfd8e2;
  background: #fff;
  color: var(--text);
  padding: 14px 15px;
  font: inherit;
}
textarea { min-height: 126px; resize: vertical; }

.site-footer {
  background: #121a23;
  border-top: 1px solid var(--line);
  padding: 48px 0;
  color: #c2cbd4;
}
.site-footer .brand strong { color: #fff; }
.site-footer .brand span { color: #c2cbd4; }
.footer-logo { display: block; width: 164px; line-height: 0; }
.footer-logo img { width: 100%; height: auto; }
.footer-product-lines { max-width: 300px; margin: 14px 0 0; color: #c2cbd4; font-size: 13px; }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  margin-bottom: 14px;
  color: #fff;
  font-weight: 700;
}
.footer-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 88px;
    padding: 8px 0;
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .js .nav-toggle {
    display: grid;
    width: 46px;
    min-height: 46px;
    padding: 11px;
    border: 1px solid #3b434c;
    background: #171c22;
    color: #fff;
    place-content: center;
    gap: 5px;
  }
  .nav-toggle:hover { border-color: var(--accent); background: #222831; }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; }
  .nav {
    grid-column: 1 / -1;
    width: 100%;
  }
  .js .nav { display: none; }
  .js .nav.open { display: block; }
  .nav-list {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding-top: 10px;
  }
  .nav-list a {
    display: block;
    padding: 13px 0;
    border-top: 1px solid #2f363e;
  }
  .header-cta { display: none; }
  .hero { min-height: 620px; }
  .category-grid,
  .advantages-grid,
  .capability-grid,
  .market-grid,
  .product-grid,
  .single-layout,
  .rfq-box { grid-template-columns: 1fr; }
  .advantages-grid { gap: 16px; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .footer-contact { justify-content: flex-start; }
  .brand-logo img { width: 104px; max-height: 72px; }
  .custom-logo { max-width: 104px; max-height: 72px; }
}

@media (max-width: 620px) {
  .hero,
  .page-banner { text-align: left; }
  .section { padding: 64px 0; }
  .rfq-form { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { display: block; }
  .button { width: 100%; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
