@import url("tokens.css");

/* ===========================
   PFT PRODUCTS - PUBLIC SITE
   Theme: industrial / maroon
   Brand values come from tokens.css — the vars below are
   aliases kept for backwards compatibility with existing rules.
=========================== */
:root {
  --pft-maroon: var(--brand-maroon);
  --pft-maroon-dark: var(--brand-maroon-dark);
  --pft-maroon-light: var(--brand-maroon-light);
  --pft-dark: var(--brand-ink);
  --pft-charcoal: var(--brand-charcoal);
  --pft-border: var(--brand-line-light);
  --pft-text: var(--brand-text-dark);
  --pft-muted: var(--brand-muted-light);
  --pft-light: #f6f7f9;
}

html, body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--pft-text);
  background: #fff;
  overflow-x: hidden;
  max-width: 100%;
}

h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -0.01em; }

a { color: var(--pft-maroon); text-decoration: none; }
a:hover { color: var(--pft-maroon-dark); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--pft-charcoal);
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar a { color: rgba(255,255,255,0.85); margin-left: 1.25rem; }
.topbar a:hover { color: #fff; }
.topbar .bi { margin-right: 0.3rem; }

/* ---------- Navbar ---------- */
.navbar-pft {
  background: var(--pft-dark);
  border-bottom: 3px solid var(--pft-maroon);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.navbar-pft .navbar-brand img { height: 44px; }
.navbar-pft .nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  padding: 0.5rem 0.95rem !important;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.navbar-pft .nav-link:hover { color: #fff; }
.navbar-pft .nav-link.active {
  color: #fff;
  border-bottom: 2px solid var(--pft-maroon-light);
}
.navbar-pft .dropdown-menu {
  background: var(--pft-charcoal);
  border: 1px solid #2a2a30;
  border-radius: 0;
  padding: 0.5rem 0;
  margin-top: 0;
}
.navbar-pft .dropdown-item {
  color: rgba(255,255,255,0.85);
  padding: 0.55rem 1.3rem;
  font-size: 0.9rem;
}
.navbar-pft .dropdown-item:hover { background: var(--pft-maroon); color: #fff; }

/* ---------- Buttons ---------- */
.btn-maroon {
  background: var(--pft-maroon);
  color: #fff;
  border: 1px solid var(--pft-maroon);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.4rem;
  border-radius: 0.35rem;
}
.btn-maroon:hover { background: var(--pft-maroon-dark); color: #fff; border-color: var(--pft-maroon-dark); }
.btn-outline-maroon {
  color: var(--pft-maroon);
  border: 1px solid var(--pft-maroon);
  background: transparent;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 0.35rem;
}
.btn-outline-maroon:hover { background: var(--pft-maroon); color: #fff; }

/* ---------- Pagination ---------- */
.pagination .page-link {
  color: var(--pft-maroon);
  border-color: var(--pft-border);
}
.pagination .page-link:hover {
  color: #fff;
  background: var(--pft-maroon);
  border-color: var(--pft-maroon);
}
.pagination .page-link:focus {
  color: #fff;
  background: var(--pft-maroon);
  border-color: var(--pft-maroon);
  box-shadow: 0 0 0 0.2rem rgba(123, 30, 43, 0.25);
}
.pagination .page-item.active .page-link {
  background: var(--pft-maroon);
  border-color: var(--pft-maroon);
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  color: var(--pft-muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  background:
    linear-gradient(120deg, rgba(17,17,24,0.92) 0%, rgba(17,17,24,0.55) 60%, rgba(123,30,43,0.45) 100%),
    linear-gradient(135deg, #2a2a30 0%, #1a1a1f 100%);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,0.018) 18px 36px);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(123,30,43,0.85);
  color: #fff;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-left: 3px solid #fff;
}
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); margin-bottom: 1rem; line-height: 1.08; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.9); max-width: 640px; }
.hero-content { position: relative; z-index: 2; }

/* ---------- Page header ---------- */
.page-header {
  background:
    linear-gradient(120deg, rgba(17,17,24,0.94) 0%, rgba(17,17,24,0.7) 70%, rgba(123,30,43,0.5) 100%),
    linear-gradient(135deg, #2a2a30 0%, #1a1a1f 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,0.018) 18px 36px);
  pointer-events: none;
}
.page-header .crumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.page-header .crumb a { color: rgba(255,255,255,0.9); }
.page-header h1 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); margin-top: 0.75rem; }
.page-header p { color: rgba(255,255,255,0.8); margin-top: 0.5rem; max-width: 720px; }
.page-header > .container { position: relative; z-index: 2; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-light { background: var(--pft-light); }
.section-dark { background: var(--pft-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.section-heading::before {
  content: '';
  width: 4px;
  height: 2.4rem;
  background: var(--pft-maroon);
  flex-shrink: 0;
}
.section-heading .eyebrow {
  display: block;
  font-size: 0.78rem;
  color: var(--pft-maroon);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.section-heading h2 { margin: 0; font-weight: 700; }

/* ---------- Category cards ---------- */
.cat-card {
  position: relative;
  height: 220px;
  border-radius: 0.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2a30, #111118);
  color: #fff !important;
  padding: 1.5rem;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s;
  border: 1px solid #2a2a30;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}
.cat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--pft-maroon);
}
.cat-card .cat-icon {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 3rem;
  opacity: 0.25;
  color: #fff;
}
.cat-card h5 { margin-bottom: 0.25rem; font-weight: 700; }
.cat-card small { color: rgba(255,255,255,0.7); }

/* ---------- Product cards ---------- */
.product-card {
  background: #fff;
  border: 1px solid var(--pft-border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.product-card .img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #e9ecef 0%, #ced4da 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a949f;
  font-size: 3.4rem;
  border-bottom: 1px solid var(--pft-border);
}
.product-card .body {
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--pft-maroon);
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.product-card h5 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.product-card .spec { font-size: 0.88rem; color: var(--pft-muted); margin-bottom: 0.75rem; }
.product-card .footer-row {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--pft-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Stats ---------- */
.stat { text-align: center; padding: 1.5rem; }
.stat .num {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--pft-maroon);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat .label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pft-muted);
  font-weight: 700;
}

/* ---------- Feature box ---------- */
.feature {
  padding: 1.85rem 1.5rem;
  background: #fff;
  border: 1px solid var(--pft-border);
  border-radius: 0.5rem;
  height: 100%;
}
.feature .ficon {
  width: 56px; height: 56px;
  background: var(--pft-maroon);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 1.7rem;
  margin-bottom: 1rem;
}
.feature h5 { margin-bottom: 0.5rem; }
.feature p { margin: 0; color: var(--pft-muted); font-size: 0.95rem; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background:
    linear-gradient(90deg, rgba(123,30,43,0.95) 0%, rgba(93,22,32,0.95) 100%);
  color: #fff;
  padding: 3rem 0;
}
.cta-strip .btn-light {
  font-weight: 700;
  color: var(--pft-maroon);
  padding: 0.7rem 1.6rem;
}

/* ---------- Footer ---------- */
footer.pft-footer {
  background: var(--pft-dark);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 1.5rem;
  border-top: 4px solid var(--pft-maroon);
}
footer.pft-footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  display: block;
  padding: 0.2rem 0;
  font-size: 0.93rem;
}
footer.pft-footer a:hover { color: #fff; }
footer.pft-footer h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
}
footer.pft-footer .footer-brand img { height: 40px; margin-bottom: 1rem; }
footer.pft-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Default-content banner ---------- */
.default-content-banner {
  background: #fff3cd;
  border-bottom: 1px solid #ffe69c;
  color: #664d03;
  font-size: 0.9rem;
  padding: 0.6rem 0;
  cursor: help;
}
.default-content-banner .bi { margin-right: 0.4rem; }
@media print { .default-content-banner { display: none; } }

/* ---------- Misc ---------- */
.text-maroon { color: var(--pft-maroon) !important; }
.bg-maroon { background: var(--pft-maroon); color: #fff; }
.bg-charcoal { background: var(--pft-dark); color: #fff; }
.divider-maroon { width: 60px; height: 3px; background: var(--pft-maroon); margin: 1rem 0 1.5rem; }

.spec-table th { background: var(--pft-light); font-weight: 600; width: 35%; color: var(--pft-text); }
.spec-table td, .spec-table th { padding: 0.75rem 1rem; border-bottom: 1px solid var(--pft-border); }

/* ---------- Warranty plan comparison ---------- */
.warranty-table { margin-bottom: 0; }
.warranty-table thead th {
  background: var(--pft-dark);
  color: #fff;
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-bottom: 0;
  white-space: nowrap;
  vertical-align: middle;
}
.warranty-table thead th:not(:first-child) { text-align: center; }
.warranty-table tbody th {
  background: var(--pft-light);
  font-weight: 600;
  color: var(--pft-text);
  width: 28%;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--pft-border);
}
.warranty-table tbody td {
  width: 24%;
  text-align: center;
  vertical-align: middle;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--pft-border);
  color: var(--pft-text);
}
.warranty-table tbody tr:last-child th,
.warranty-table tbody tr:last-child td { border-bottom: 0; }
/* Highlight the top-tier Premium Care column */
.warranty-table thead th:last-child { background: var(--pft-maroon); }
.warranty-table tbody td:last-child {
  background: rgba(123, 30, 43, 0.05);
  font-weight: 600;
}
@media (max-width: 575.98px) {
  .warranty-table thead th,
  .warranty-table tbody th,
  .warranty-table tbody td { padding: 0.65rem 0.85rem; font-size: 0.9rem; }
}

.dealer-card {
  background: #fff;
  border: 1px solid var(--pft-border);
  border-left: 4px solid var(--pft-maroon);
  border-radius: 0.4rem;
  padding: 1.3rem;
}
.dealer-card h6 { margin-bottom: 0.4rem; }
.dealer-card .meta { color: var(--pft-muted); font-size: 0.9rem; line-height: 1.65; }

.news-card {
  background: #fff;
  border: 1px solid var(--pft-border);
  border-radius: 0.5rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
.news-card .img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #2a2a30, #111118);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 3rem;
}
.news-card .body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.news-card .date {
  font-size: 0.78rem;
  color: var(--pft-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.thumb-strip { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.thumb-strip .thumb {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #e9ecef, #ced4da);
  border-radius: 0.35rem;
  border: 1px solid var(--pft-border);
  display: flex; align-items: center; justify-content: center;
  color: #8a949f; font-size: 1.5rem;
  cursor: pointer;
}
.thumb-strip .thumb.active { border: 2px solid var(--pft-maroon); }

.gallery-main {
  width: 100%;
  height: 440px;
  background: linear-gradient(135deg, #e9ecef 0%, #ced4da 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a949f;
  font-size: 5rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--pft-border);
}

.event-row {
  background: #fff;
  border: 1px solid var(--pft-border);
  border-radius: 0.5rem;
  padding: 1.3rem;
  display: flex;
  gap: 1.3rem;
  align-items: center;
  margin-bottom: 1rem;
}
.event-row .date-block {
  background: var(--pft-maroon);
  color: #fff;
  width: 84px;
  text-align: center;
  border-radius: 0.4rem;
  padding: 0.6rem 0;
  flex-shrink: 0;
}
.event-row .date-block .d { font-size: 1.9rem; font-weight: 700; line-height: 1; }
.event-row .date-block .m { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.event-row .body { flex: 1; }
.event-row .body h6 { margin-bottom: 0.25rem; }
.event-row .body .meta { color: var(--pft-muted); font-size: 0.9rem; }

.filter-aside {
  background: #fff;
  border: 1px solid var(--pft-border);
  border-radius: 0.5rem;
  padding: 1.4rem;
}
.filter-aside h6 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pft-muted);
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--pft-border);
}
.filter-aside .form-check { margin-bottom: 0.3rem; }
.filter-aside .form-check-label { font-size: 0.92rem; }

.testimonial {
  background: #fff;
  border: 1px solid var(--pft-border);
  border-radius: 0.5rem;
  padding: 1.75rem;
  height: 100%;
}
.testimonial .quote-mark {
  color: var(--pft-maroon);
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.testimonial p { color: var(--pft-text); margin-bottom: 1rem; font-style: italic; }
.testimonial .who { font-weight: 700; }
.testimonial .role { color: var(--pft-muted); font-size: 0.88rem; }

.icon-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--pft-maroon);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
