/* ================================================================
   Phoenix Hiring — Brand CSS (Bootstrap 5 override)
   Colors: Red #c0392b | Black #111111 | White #ffffff
   ================================================================ */

/* ── CSS variables ────────────────────────────────────────────── */
:root {
  --ph-red:       #c0392b;
  --ph-red-dark:  #922b21;
  --ph-red-light: #e74c3c;
  --ph-black:     #111111;
  --ph-grey:      #f5f5f5;
  --ph-border:    #e0e0e0;
  --ph-text:      #333333;
  --ph-muted:     #666666;
}

/* ── Base ─────────────────────────────────────────────────────── */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ph-text);
  background: #ffffff;
}

a {
  color: var(--ph-red);
  text-decoration: none;
}
a:hover { color: var(--ph-red-dark); }

/* ── Bootstrap primary overrides ─────────────────────────────── */
.btn-primary {
  background-color: var(--ph-red);
  border-color:     var(--ph-red);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--ph-red-dark);
  border-color:     var(--ph-red-dark);
  color: #fff;
}
.btn-outline-primary {
  color: var(--ph-red);
  border-color: var(--ph-red);
}
.btn-outline-primary:hover {
  background-color: var(--ph-red);
  border-color:     var(--ph-red);
  color: #fff;
}
.btn-dark {
  background-color: var(--ph-black);
  border-color:     var(--ph-black);
}
.btn-outline-light:hover { color: var(--ph-black); }

.text-primary { color: var(--ph-red) !important; }
.bg-primary   { background-color: var(--ph-red) !important; }
.border-primary { border-color: var(--ph-red) !important; }

.badge.bg-primary { background-color: var(--ph-red) !important; }

/* ── Navbar ───────────────────────────────────────────────────── */
.ph-navbar {
  background: var(--ph-black);
  padding: 0.75rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.ph-navbar .navbar-brand {
  padding: 0;
  line-height: 1;
}
.ph-navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  padding: 0.4rem 0.85rem !important;
  transition: color 0.2s;
}
.ph-navbar .nav-link:hover,
.ph-navbar .nav-link.active {
  color: #ffffff !important;
}
.ph-navbar .navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}
.ph-navbar .navbar-toggler-icon {
  filter: invert(1);
}
.ph-navbar .btn-quote {
  background: var(--ph-red);
  color: #fff !important;
  border-radius: 4px;
  padding: 0.4rem 1.2rem !important;
  font-weight: 600;
  transition: background 0.2s;
}
.ph-navbar .btn-quote:hover {
  background: var(--ph-red-dark);
}

/* ── Hero section ─────────────────────────────────────────────── */
.ph-hero {
  background: var(--ph-black);
  color: #fff;
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.ph-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #000 0%, #1a0000 50%, var(--ph-black) 100%);
  opacity: 0.7;
}
.ph-hero .container { position: relative; z-index: 1; }
.ph-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.ph-hero h1 .accent { color: var(--ph-red); }
.ph-hero .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
}
.ph-hero .badge-pill {
  display: inline-block;
  background: var(--ph-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ── Stats bar ────────────────────────────────────────────────── */
.ph-stats {
  background: var(--ph-red);
  color: #fff;
  padding: 1.25rem 0;
}
.ph-stats .stat-item {
  text-align: center;
  padding: 0.5rem 0;
}
.ph-stats .stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}
.ph-stats .stat-label {
  font-size: 0.8rem;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

/* ── Section titles ───────────────────────────────────────────── */
.section-title {
  font-weight: 700;
  color: var(--ph-black);
  position: relative;
  padding-bottom: 0.75rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--ph-red);
  margin-top: 0.6rem;
}
.section-title.center::after { margin-left: auto; margin-right: auto; }

/* ── Category cards ───────────────────────────────────────────── */
.category-card {
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  padding: 2rem 1.25rem 1.5rem;
  text-align: center;
  background: #fff;
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: var(--ph-text);
  display: block;
  height: 100%;
}
.category-card:hover {
  border-color: var(--ph-red);
  box-shadow: 0 6px 20px rgba(192,57,43,0.15);
  transform: translateY(-3px);
  color: var(--ph-black);
}
.category-card .cat-icon {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
  display: block;
}
.category-card .cat-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.category-card .cat-desc {
  font-size: 0.82rem;
  color: var(--ph-muted);
}

/* ── Product cards ────────────────────────────────────────────── */
.product-card-wrap {
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card-wrap:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}
.product-card-wrap > a {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.product-card-wrap > a > .product-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.product-card .product-img {
  position: relative;
  height: 180px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #ccc;
  flex-shrink: 0;
  padding: 12px;
  border-bottom: 1px solid var(--ph-border);
}
.product-availability-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.68rem;
  padding: 0.3em 0.6em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.product-card .product-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card .product-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ph-black);
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .product-price-row {
  margin-top: auto;
  padding-top: 0.5rem;
}
.product-card .product-price {
  color: var(--ph-red);
  font-weight: 700;
  font-size: 1.05rem;
}
.product-card .product-unit {
  font-size: 0.75rem;
  color: var(--ph-muted);
}
.product-card-footer {
  padding: 0 1rem 1rem;
}

/* ── How it works steps ───────────────────────────────────────── */
.step-card {
  text-align: center;
  padding: 2rem 1rem;
}
.step-number {
  width: 56px;
  height: 56px;
  background: var(--ph-red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}
.step-connector {
  position: relative;
}
.step-connector::after {
  content: '';
  display: none;
}
@media (min-width: 768px) {
  .step-connector:not(:last-child)::after {
    content: '';
    display: block;
    position: absolute;
    top: 28px;
    left: calc(50% + 28px);
    width: calc(100% - 56px);
    height: 2px;
    background: var(--ph-border);
  }
}
.step-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--ph-black);
}

/* ── CTA section ──────────────────────────────────────────────── */
.ph-cta {
  background: var(--ph-red);
  color: #fff;
  padding: 72px 0;
}
.ph-cta h2 { font-weight: 800; }
.ph-cta .btn-light {
  background: #fff;
  color: var(--ph-red);
  font-weight: 700;
  border: none;
}
.ph-cta .btn-light:hover {
  background: rgba(255,255,255,0.9);
}
.ph-cta .btn-outline-light {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.ph-cta .btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* ── Grey section ─────────────────────────────────────────────── */
.bg-ph-grey { background: var(--ph-grey); }

/* ── Footer ───────────────────────────────────────────────────── */
.ph-footer {
  background: var(--ph-black);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
}
.ph-footer .footer-brand { display: inline-block; }
.ph-footer .footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.25rem;
}
.ph-footer h6 {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}
.ph-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.ph-footer .footer-links li { margin-bottom: 0.5rem; }
.ph-footer .footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.ph-footer .footer-links a:hover { color: var(--ph-red); }
.ph-footer .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.65rem;
}
.ph-footer .contact-item a {
  color: rgba(255,255,255,0.65);
}
.ph-footer .contact-item a:hover { color: var(--ph-red); }
.ph-footer .contact-icon {
  color: var(--ph-red);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.ph-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  margin-top: 48px;
}
.ph-footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ── Page hero (inner pages) ──────────────────────────────────── */
.page-hero {
  background: var(--ph-black);
  color: #fff;
  padding: 56px 0 48px;
}
.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
}
.page-hero .breadcrumb { margin-bottom: 0.5rem; }
.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ── Form styling ─────────────────────────────────────────────── */
.form-control:focus,
.form-select:focus {
  border-color: var(--ph-red);
  box-shadow: 0 0 0 0.2rem rgba(192,57,43,0.15);
}
.form-check-input:checked {
  background-color: var(--ph-red);
  border-color: var(--ph-red);
}
.input-group .btn { border-radius: 0 4px 4px 0; }

/* ── Alert / notice ───────────────────────────────────────────── */
.alert-brand {
  background: rgba(192,57,43,0.08);
  border-left: 4px solid var(--ph-red);
  border-radius: 4px;
  color: var(--ph-black);
}

/* ── Quote form sections ──────────────────────────────────────── */
.form-section-card {
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.form-section-heading {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ph-black);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ph-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-section-heading .step-badge {
  background: var(--ph-red);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Product qty row (in quote form) ─────────────────────────── */
.product-qty-row {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--ph-border);
}
.product-qty-row:last-child { border-bottom: none; }
.product-qty-name { flex: 1; font-size: 0.92rem; }
.product-qty-price { color: var(--ph-muted); font-size: 0.82rem; margin-right: 1rem; }
.product-qty-input { width: 72px; }
.remove-qty-item { margin-left: 0.5rem; padding: 0.25rem 0.4rem; line-height: 1; }

/* ── Scrollable category tab list ────────────────────────────── */
.cat-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  flex-wrap: nowrap;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab-btn {
  white-space: nowrap;
  border: 1px solid var(--ph-border);
  background: #fff;
  color: var(--ph-text);
  border-radius: 20px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.cat-tab-btn:hover,
.cat-tab-btn.active {
  background: var(--ph-red);
  border-color: var(--ph-red);
  color: #fff;
}

/* ── Empty state ──────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ph-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }

/* ── Spinner color ────────────────────────────────────────────── */
.spinner-border.text-primary { color: var(--ph-red) !important; }

/* ── Misc ─────────────────────────────────────────────────────── */
.section-pad { padding: 72px 0; }
.section-pad-sm { padding: 48px 0; }

.rounded-xl { border-radius: 12px; }

.text-red { color: var(--ph-red); }
.fw-black { font-weight: 900; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 767px) {
  .ph-hero { padding: 60px 0 48px; }
  .section-pad { padding: 48px 0; }
  .ph-cta { padding: 48px 0; }
  .ph-footer { padding: 40px 0 0; }
  .ph-footer-bottom { margin-top: 32px; }
  .form-section-card { padding: 1.25rem; }
}
