/*
 * CRS Automotive Parts — Site Styles
 * Built on febi Design System tokens
 */

/* Local alpha shorthand — febi-red (#e3101c) at reduced opacity */
:root {
  --crs-red-alpha-12: rgba(227, 16, 28, 0.12);
  --crs-red-alpha-25: rgba(227, 16, 28, 0.25);
}

/* ============================================================
   BASE RESET & GLOBALS
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--febi-body-font-size);
  line-height: var(--febi-body-line-height);
  color: var(--febi-body-color);
  background: var(--febi-body-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--febi-heading-font-weight);
  line-height: var(--febi-heading-line-height);
  color: var(--febi-gray-900);
  margin-bottom: var(--febi-space-3);
}

h1 { font-size: clamp(2.4rem, 5vw, var(--febi-h1-size)); }
h2 { font-size: clamp(1.8rem, 3.5vw, var(--febi-h2-size)); }
h3 { font-size: clamp(1.2rem, 2vw, var(--febi-h3-size)); }

p { margin-bottom: var(--febi-space-3); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--febi-link-color);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--febi-link-hover-color); }

address { font-style: normal; }

ul { list-style: none; padding: 0; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--febi-space-4);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--febi-space-3); }
}

.section {
  padding: 6rem 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--febi-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.01em;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--febi-red);
  color: #fff;
  border-color: var(--febi-red);
}
.btn-primary:hover {
  background: var(--febi-red-dark);
  border-color: var(--febi-red-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

.btn-full { width: 100%; justify-content: center; }

.btn-call {
  display: inline-flex;
  align-items: center;
  background: var(--febi-red);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--febi-radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.btn-call:hover {
  background: var(--febi-red-dark);
  color: #fff;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.site-header.scrolled {
  background: #111;
  padding: 0.75rem 0;
  box-shadow: var(--febi-shadow);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--febi-space-4);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links li a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.nav-links li a:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #111;
    border-top: 2px solid var(--febi-red);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--febi-space-4) 1.5rem;
    gap: 0.25rem;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .nav-links.nav-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links li a {
    display: block;
    font-size: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .btn-call {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: var(--febi-radius);
  }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #1a1a1a;
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.72) 0%, rgba(20,0,0,0.55) 100%),
    url('images/prop-shaft-4.jpg');
  background-position: center 90%;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 680px;
  padding: 8rem 0 4rem;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--febi-red);
  margin-bottom: 1rem;
  background: var(--crs-red-alpha-12);
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--febi-radius-sm);
  border-left: 3px solid var(--febi-red);
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scroll-bounce 1.8s infinite;
}
@keyframes scroll-bounce {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

/* ============================================================
   TRUST BAR
   ============================================================ */

.trust-bar {
  background: #111;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 3px solid var(--febi-red);
  padding: 1.5rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--febi-space-3);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--febi-red);
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--febi-space-2);
  }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--febi-space-5);
}

.section-header h2 {
  color: var(--febi-gray-900);
  margin-bottom: 1rem;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--febi-red);
  margin: 0.75rem auto 0;
}

.section-header p {
  color: var(--febi-gray-500);
  font-size: 1.05rem;
  line-height: 1.6;
}

.section-header--light h2 { color: #fff; }
.section-header--light p { color: rgba(255,255,255,0.7); }

/* ============================================================
   PRODUCTS
   ============================================================ */

.products-section {
  background: var(--febi-gray-100);
}

/* Carousel */
.carousel-track {
  display: flex;
  gap: var(--febi-space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  cursor: grab;
}

.carousel-track:active { cursor: grabbing; }

.carousel-track::-webkit-scrollbar {
  height: 4px;
}
.carousel-track::-webkit-scrollbar-track {
  background: var(--febi-gray-300);
  border-radius: 2px;
}
.carousel-track::-webkit-scrollbar-thumb {
  background: var(--febi-red);
  border-radius: 2px;
}

.carousel-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
}

@media (max-width: 576px) {
  .carousel-card { flex: 0 0 85vw; }
}

.product-card {
  background: #fff;
  border-radius: var(--febi-radius-lg);
  overflow: hidden;
  border: var(--febi-border-width) solid var(--febi-border-color);
  box-shadow: var(--febi-shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--febi-shadow);
}

.product-card--featured {
  border-color: var(--febi-red);
  box-shadow: 0 0 0 1px var(--febi-red), var(--febi-shadow-sm);
}

.product-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--febi-gray-200);
  display: block;
  text-decoration: none;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.04);
}

/* Fallback backgrounds if image fails */
.hub-img   { background: #1a1a2e; }
.shaft-img { background: #1e0a00; }
.axle-img  { background: #0a1628; }
.wbearing-img { background: #0a1a1a; }
.wire-img  { background: #1a1400; }
.maf-img   { background: #001a2a; }
.oxy-img   { background: #1a0a1a; }

.product-icon {
  display: none;
}

.product-card-body {
  padding: var(--febi-space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--febi-gray-500);
  background: var(--febi-gray-200);
  padding: 0.25rem 0.65rem;
  border-radius: var(--febi-radius-pill);
  margin-bottom: 0.85rem;
}

.product-tag--featured {
  background: var(--crs-red-alpha-12);
  color: var(--febi-red);
}

.product-card-body h3 {
  font-size: 1.25rem;
  color: var(--febi-gray-900);
  margin-bottom: 0.75rem;
}

.product-card-body p {
  font-size: 0.93rem;
  color: var(--febi-gray-500);
  line-height: 1.6;
  margin-bottom: var(--febi-space-3);
}

.product-features {
  list-style: none;
  padding: 0;
  margin-top: auto;
  border-top: 1px solid var(--febi-border-color);
  padding-top: var(--febi-space-3);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--febi-gray-700);
}

.product-features li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--febi-red);
  flex-shrink: 0;
}

/* Additional products */
.additional-products {
  margin-top: var(--febi-space-5);
  display: flex;
  align-items: center;
  gap: var(--febi-space-3);
  flex-wrap: wrap;
}

.additional-label {
  font-size: 0.9rem;
  color: var(--febi-gray-600);
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
}

.additional-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--febi-border-color);
  border-radius: var(--febi-radius-pill);
  font-size: 0.85rem;
  color: var(--febi-gray-700);
  background: #fff;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-section {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--febi-space-5); }
}

.about-content h2 {
  color: var(--febi-gray-900);
}

.about-content h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--febi-red);
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--febi-gray-700);
  line-height: 1.65;
  margin-bottom: var(--febi-space-3);
}

.about-content p {
  font-size: 0.96rem;
  color: var(--febi-gray-500);
  line-height: 1.7;
}

.about-content .btn {
  margin-top: var(--febi-space-3);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--febi-space-3);
}

.stat-card {
  background: var(--febi-gray-100);
  border-radius: var(--febi-radius-lg);
  padding: var(--febi-space-4);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  border-left: 3px solid var(--febi-red);
  transition: transform 0.2s;
}

.stat-card:hover { transform: translateY(-2px); }

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--febi-red);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--febi-gray-600);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-section {
  background: #fff;
  color: var(--febi-body-color);
}

.contact-section .section-header h2 {
  color: var(--febi-gray-900);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--febi-space-5); }
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--febi-space-4);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--febi-gray-100);
  border-radius: var(--febi-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--febi-border-color);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--febi-red);
}

.contact-item strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--febi-gray-600);
  margin-bottom: 0.3rem;
}

.contact-item a,
.contact-item span,
.contact-item address {
  color: var(--febi-gray-700);
  font-size: 0.97rem;
  line-height: 1.6;
}

.contact-item a:hover { color: var(--febi-red); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--febi-space-3);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--febi-space-3);
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--febi-gray-600);
}

.form-group input,
.form-group textarea {
  background: var(--febi-gray-100);
  border: 1px solid var(--febi-border-color);
  border-radius: var(--febi-radius);
  padding: 0.75rem 1rem;
  color: var(--febi-gray-900);
  font-size: 0.97rem;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
  resize: vertical;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--febi-gray-600);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--febi-red);
  background: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #000;
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 0;
  border-top: 3px solid var(--febi-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--febi-space-5);
  padding-bottom: var(--febi-space-5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--febi-space-4); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo-img {
  height: 86px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.25rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin: 0.5rem 0 0;
}

.footer-links strong,
.footer-contact strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a,
.footer-contact a {
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  transition: color 0.15s;
}

.footer-links a:hover,
.footer-contact a:hover { color: var(--febi-red); }

.footer-contact p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   INNER PAGE — PAGE HERO (used on products / about / contact)
   ============================================================ */

.page-hero {
  background-color: #111;
  background-image: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(20,0,0,0.7) 100%),
    url('images/prop-shaft-4.jpg');
  background-size: cover;
  background-position: center 90%;
  padding: 9rem 0 4rem;
  border-bottom: 3px solid var(--febi-red);
}

.page-hero-content {
  max-width: 700px;
}

.page-hero .hero-eyebrow {
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */

.products-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--febi-space-3);
}

@media (max-width: 992px) {
  .products-full-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .products-full-grid { grid-template-columns: 1fr; }
}

.sensor-img { background: #0a2a0a; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-page-section {
  background: #fff;
}

.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .about-page-grid { grid-template-columns: 1fr; gap: var(--febi-space-5); }
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--febi-space-3);
  margin-top: var(--febi-space-4);
}

.value-card {
  background: var(--febi-gray-100);
  border-radius: var(--febi-radius-lg);
  padding: var(--febi-space-3);
  border-top: 3px solid var(--febi-red);
}

.value-card h4 {
  font-size: 1rem;
  color: var(--febi-gray-900);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--febi-gray-500);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   PRODUCT DETAIL PAGES
   ============================================================ */

.product-detail-section {
  background: #fff;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: var(--febi-space-5); }
}

/* Gallery */
.product-gallery {
  position: sticky;
  top: 100px;
}

.gallery-featured {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--febi-radius-lg);
  background: var(--febi-gray-200);
  margin-bottom: var(--febi-space-2);
  cursor: zoom-in;
}

.gallery-featured img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.gallery-featured:hover img { transform: scale(1.03); }

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--febi-radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
  background: var(--febi-gray-200);
  flex-shrink: 0;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--febi-red);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

#crs-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99998;
  align-items: center;
  justify-content: center;
}

#crs-lightbox.lb-open {
  display: flex;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
}

.lb-img-wrap {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img-wrap img {
  max-width: 90vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--febi-radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  display: block;
}

.lb-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lb-close svg { width: 20px; height: 20px; }
.lb-close:hover { background: rgba(227,16,28,0.6); border-color: var(--febi-red); }

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lb-prev svg, .lb-next svg { width: 22px; height: 22px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }

.lb-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  pointer-events: none;
}

@media (max-width: 600px) {
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
  .lb-close { top: 0.75rem; right: 0.75rem; }
}

/* Product info */
.product-info-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--febi-gray-500);
  margin-bottom: var(--febi-space-3);
  transition: color 0.15s;
}
.product-info-back:hover { color: var(--febi-red); }
.product-info-back svg { width: 14px; height: 14px; }

.product-info h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--febi-gray-900);
  margin-bottom: 0.5rem;
}

.product-info .product-tag {
  margin-bottom: var(--febi-space-3);
}

.product-info-desc {
  font-size: 1rem;
  color: var(--febi-gray-500);
  line-height: 1.7;
  margin-bottom: var(--febi-space-4);
  padding-bottom: var(--febi-space-4);
  border-bottom: 1px solid var(--febi-border-color);
}

.product-info h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--febi-gray-600);
  margin-bottom: 1rem;
}

.product-info .product-features {
  border-top: none;
  padding-top: 0;
  margin-bottom: var(--febi-space-4);
}

.product-info .product-features li {
  font-size: 0.95rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--febi-gray-200);
}
.product-info .product-features li:last-child { border-bottom: none; }

.product-cta-box {
  background: #111;
  border-radius: var(--febi-radius-lg);
  padding: var(--febi-space-4);
  margin-top: var(--febi-space-4);
  border-left: 4px solid var(--febi-red);
}

.product-cta-box p {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  margin-bottom: var(--febi-space-2);
}

/* "View Details" link on product cards */
.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: var(--febi-space-3);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--febi-red);
  letter-spacing: 0.02em;
  transition: gap 0.15s;
}
.product-card-link:hover { gap: 0.6rem; color: var(--febi-red-dark); }
.product-card-link svg { width: 14px; height: 14px; }

/* ============================================================
   EMPLOYMENT PAGE
   ============================================================ */

.employ-intro {
  max-width: 720px;
  margin-bottom: var(--febi-space-5);
}

.job-listing {
  background: #fff;
  border: 1px solid var(--febi-border-color);
  border-radius: var(--febi-radius-lg);
  overflow: hidden;
  box-shadow: var(--febi-shadow-sm);
  margin-bottom: var(--febi-space-5);
}

.job-header {
  background: #111;
  padding: var(--febi-space-4) var(--febi-space-5);
  border-bottom: 3px solid var(--febi-red);
}

.job-header .product-tag {
  background: var(--crs-red-alpha-12);
  color: var(--febi-red);
  margin-bottom: 0.75rem;
}

.job-header h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
}

.job-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

.job-meta-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: var(--febi-red);
}

.job-body {
  padding: var(--febi-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--febi-space-4);
}

.job-section h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--febi-gray-600);
  margin-bottom: 0.85rem;
}

.job-section p {
  color: var(--febi-gray-500);
  line-height: 1.7;
  font-size: 0.97rem;
}

.job-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.job-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--febi-gray-700);
  line-height: 1.55;
}

.job-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--febi-red);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.job-apply {
  border-top: 1px solid var(--febi-border-color);
  padding-top: var(--febi-space-4);
}

.job-apply h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--febi-gray-600);
  margin-bottom: 0.85rem;
}

.job-apply > p {
  color: var(--febi-gray-500);
  margin-bottom: var(--febi-space-3);
}

.job-apply-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--febi-space-3);
}

@media (max-width: 576px) {
  .job-apply-methods { grid-template-columns: 1fr; }
  .job-body { padding: var(--febi-space-3); }
}

.job-apply-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--febi-gray-100);
  border-radius: var(--febi-radius);
  padding: var(--febi-space-3);
  border: 1px solid var(--febi-border-color);
}

.job-apply-card strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--febi-gray-600);
  margin-bottom: 0.3rem;
}

.job-apply-card address,
.job-apply-card a {
  font-style: normal;
  color: var(--febi-gray-700);
  font-size: 0.92rem;
  line-height: 1.55;
}

.job-apply-card a:hover { color: var(--febi-red); }

.employ-general {
  background: #111;
  border-radius: var(--febi-radius-lg);
  padding: var(--febi-space-4) var(--febi-space-5);
  border-left: 4px solid var(--febi-red);
}

.employ-general h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.employ-general p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.employ-general a { color: var(--febi-red); }
.employ-general a:hover { color: #fff; }

/* Active nav link */
.nav-active {
  color: var(--febi-red) !important;
}

.nav-active-btn {
  background: var(--febi-red-dark) !important;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Products page CTA strip */
.products-cta {
  margin-top: var(--febi-space-5);
  padding: var(--febi-space-4) var(--febi-space-5);
  background: #111;
  border-radius: var(--febi-radius-lg);
  border-left: 4px solid var(--febi-red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--febi-space-4);
  flex-wrap: wrap;
}

.products-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  margin: 0;
}

/* Select input on dark backgrounds */
.form-group select {
  background: var(--febi-gray-100);
  border: 1px solid var(--febi-border-color);
  border-radius: var(--febi-radius);
  padding: 0.75rem 1rem;
  color: var(--febi-gray-900);
  font-size: 0.97rem;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 18px;
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: var(--febi-red);
  background-color: #fff;
}

.form-group select option {
  background: #fff;
  color: var(--febi-gray-900);
}

/* ============================================================
   MAP SECTION
   ============================================================ */

.map-section {
  border-top: 3px solid var(--febi-red);
}

.map-label {
  background: #111;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.map-label-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.map-label-inner .contact-icon {
  background: rgba(227,16,28,0.12);
  border-color: rgba(227,16,28,0.25);
  flex-shrink: 0;
}

.map-label-inner strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.map-label-inner span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

.map-label-inner .btn-sm {
  margin-left: auto;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  background: var(--febi-red);
  color: #fff;
  border-color: var(--febi-red);
  border-radius: var(--febi-radius);
  border: 2px solid var(--febi-red);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.map-label-inner .btn-sm:hover {
  background: #c00d18;
  border-color: #c00d18;
  color: #fff;
}

.map-wrap {
  padding: 2.5rem 0 3rem;
  background: #f5f5f5;
}

.map-embed {
  width: 100%;
  max-width: 900px;
  height: 560px;
  margin: 0 auto;
  display: block;
  background: var(--febi-gray-200);
  border-radius: var(--febi-radius-lg);
  overflow: hidden;
  box-shadow: var(--febi-shadow);
}

.map-embed iframe {
  display: block;
  filter: grayscale(20%) contrast(1.05);
}

@media (max-width: 768px) {
  .map-embed { height: 420px; }
  .map-label-inner .btn-sm { margin-left: 0; }
}

@media (max-width: 480px) {
  .map-embed { height: 340px; }
  .map-wrap { padding: 1.5rem 0 2rem; }
}

/* ============================================================
   MOBILE & TABLET OPTIMISATION
   ============================================================ */

/* Tablet — ≤ 992px ------------------------------------------ */
@media (max-width: 992px) {
  .section { padding: 4rem 0; }

  .page-hero { padding: 7rem 0 3rem; }

  .hero-content { padding: 7rem 0 3rem; }

  .products-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--febi-space-3);
  }

  .about-values { grid-template-columns: 1fr 1fr; }

  .job-header { padding: var(--febi-space-4); }
  .job-body   { padding: var(--febi-space-4); }
  .employ-general { padding: var(--febi-space-4); }
}

/* Mobile — ≤ 768px ------------------------------------------ */
@media (max-width: 768px) {
  .section { padding: 3rem 0; }

  /* Hero */
  .hero-content { padding: 6rem 0 2.5rem; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .hero-sub { font-size: 1rem; }
  .hero-actions { gap: 0.75rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Page hero */
  .page-hero { padding: 6rem 0 2.5rem; }
  .page-hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }

  /* Product detail: remove sticky gallery on mobile so gallery
     comes first, info scrolls below naturally */
  .product-gallery { position: static; }

  /* Larger thumb targets for touch */
  .gallery-thumb { width: 72px; height: 72px; }

  /* About values: single column on small tablets */
  .about-values { grid-template-columns: 1fr; }

  /* Employment */
  .job-header { padding: var(--febi-space-3) var(--febi-space-3); }
  .job-body   { padding: var(--febi-space-3); gap: var(--febi-space-3); }
  .employ-general { padding: var(--febi-space-3); }

  /* Footer logo slightly smaller on mobile */
  .footer-logo-img { height: 64px; }
}

/* Mobile — ≤ 480px ------------------------------------------ */
@media (max-width: 480px) {
  .section { padding: 2.5rem 0; }

  /* Hero */
  .hero-content { padding: 5.5rem 0 2rem; }

  /* Page hero */
  .page-hero { padding: 5.5rem 0 2rem; }

  /* Gallery thumbs: larger row for one-handed tap */
  .gallery-thumbs { gap: 0.4rem; }
  .gallery-thumb  { width: 64px; height: 64px; }

  /* Product CTA box */
  .product-cta-box { padding: var(--febi-space-3); }
  .product-cta-box .btn { width: 100%; justify-content: center; }

  /* Lightbox arrows — tighter on very small screens */
  .lb-prev, .lb-next { width: 40px; height: 40px; }
  .lb-prev svg, .lb-next svg { width: 18px; height: 18px; }
}
