/* =========================================================
   Aloufy KSA Trading — Brand Styles
   Bootstrap 5 + Custom Design System (Green / Red)
   ========================================================= */

:root {
  --green-deep: #0B3D2E;
  --green-primary: #145C3F;
  --green-mid: #1E7A54;
  --green-soft: #E8F2ED;
  --red-accent: #C8102E;
  --red-hover: #A50D25;
  --red-soft: #FDE8EC;
  --grey-100: #F5F6F8;
  --grey-200: #E4E7EB;
  --grey-400: #9AA3AD;
  --grey-600: #5A6570;
  --grey-800: #2A323A;
  --ink: #12171C;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(11, 61, 46, 0.06);
  --shadow-md: 0 8px 28px rgba(11, 61, 46, 0.10);
  --shadow-lg: 0 18px 48px rgba(11, 61, 46, 0.14);
  --radius: 10px;
  --radius-lg: 16px;
  --header-offset: 0px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --transition: 0.28s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.2;
  color: var(--green-deep);
  letter-spacing: -0.02em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--red-accent); }

.text-muted-brand { color: var(--grey-600) !important; }
.bg-green-deep { background: var(--green-deep) !important; }
.bg-green-soft { background: var(--green-soft) !important; }
.bg-grey-100 { background: var(--grey-100) !important; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--red-accent);
  border-color: var(--red-accent);
  color: var(--white);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  color: var(--green-primary);
  border: 2px solid var(--green-primary);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--white);
}

.btn-outline-light {
  border: 2px solid rgba(255,255,255,0.85);
  color: var(--white);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--green-deep);
}

.btn-green {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--white);
}
.btn-green:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--white);
}

.btn-cta {
  background: var(--red-accent);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.35rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.btn-cta:hover {
  background: var(--red-hover);
  color: var(--white);
}

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--green-deep);
  color: rgba(255,255,255,0.88);
  font-size: 0.8125rem;
  padding: 0.45rem 0;
}

.top-bar a {
  color: rgba(255,255,255,0.88);
}
.top-bar a:hover { color: var(--white); }

.top-bar .contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 1.25rem;
}

.top-bar .social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.top-bar .social-links a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  font-size: 0.8rem;
}
.top-bar .social-links a:hover {
  background: var(--red-accent);
  color: var(--white);
}

/* ---------- Main nav ---------- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1040;
  transition: box-shadow var(--transition), transform var(--transition);
}

.site-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  animation: slideDown 0.35s ease;
  box-shadow: var(--shadow-md);
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.navbar-brand img {
  height: 52px;
  width: auto;
}

.navbar .nav-link {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 0.9rem;
  color: var(--grey-800) !important;
  padding: 0.65rem 0.85rem !important;
  position: relative;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--green-primary) !important;
}
.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--red-accent);
}

.mobile-quick-actions {
  display: none;
  gap: 0.5rem;
}
.mobile-quick-actions a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-primary);
}
.mobile-quick-actions a.wa {
  background: var(--red-soft);
  color: var(--red-accent);
}

.navbar-toggler {
  border: 1px solid var(--grey-200);
  padding: 0.4rem 0.55rem;
}
.navbar-toggler:focus { box-shadow: none; }

/* ---------- Hero ---------- */
.hero-slider {
  position: relative;
  height: 700px;
  overflow: hidden;
}

.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
  height: 100%;
}

.hero-slide {
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(11, 61, 46, 0.92) 0%,
    rgba(11, 61, 46, 0.72) 45%,
    rgba(200, 16, 46, 0.35) 100%
  );
}

.hero-slide .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  color: var(--white);
  max-width: 720px;
  padding: 2rem 0;
}

.hero-content .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.75rem;
  max-width: 540px;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 52px;
  height: 52px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  opacity: 1;
  backdrop-filter: blur(4px);
}
.hero-slider .carousel-control-prev { left: 1.5rem; }
.hero-slider .carousel-control-next { right: 1.5rem; }
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
  background: var(--red-accent);
}

.hero-slider .carousel-indicators {
  margin-bottom: 1.5rem;
  gap: 0.4rem;
}
.hero-slider .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  opacity: 1;
}
.hero-slider .carousel-indicators .active {
  background: var(--red-accent);
  width: 28px;
  border-radius: 6px;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--white);
  margin-top: -40px;
  position: relative;
  z-index: 5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem 1rem;
}

.trust-item {
  text-align: center;
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--grey-200);
}
.trust-item:last-child { border-right: none; }

.trust-item .icon-wrap {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  color: var(--green-primary);
  border-radius: 12px;
  font-size: 1.25rem;
}

.trust-item h6 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--green-deep);
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--grey-600);
  font-size: 1.05rem;
  max-width: 640px;
}

.section-header {
  margin-bottom: 3rem;
}

/* ---------- About split ---------- */
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 420px;
  position: relative;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.stat-card {
  background: var(--grey-100);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.stat-card .value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--red-accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-card .label {
  font-size: 0.8rem;
  color: var(--grey-600);
  margin: 0;
}

/* ---------- Category cards ---------- */
.cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.cat-card .cat-img {
  height: 180px;
  position: relative;
  overflow: hidden;
}
.cat-card .cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cat-card:hover .cat-img img {
  transform: scale(1.06);
}
.cat-card .cat-icon {
  position: absolute;
  bottom: -18px;
  left: 1.25rem;
  width: 44px;
  height: 44px;
  background: var(--green-primary);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.cat-card .cat-body {
  padding: 2rem 1.35rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cat-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.cat-card p {
  font-size: 0.9rem;
  color: var(--grey-600);
  flex: 1;
}
.cat-card .btn {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* ---------- Service cards ---------- */
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--green-primary);
  transition: background var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-card:hover::before {
  background: var(--red-accent);
}
.service-card .icon {
  width: 52px;
  height: 52px;
  background: var(--green-soft);
  color: var(--green-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.15rem;
}
.service-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--grey-600);
  margin: 0;
}

.service-card-image {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.service-card-image::before {
  display: none;
}
.service-card-image .service-img {
  height: 200px;
  overflow: hidden;
  background: var(--grey-100);
}
.service-card-image .service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card-image:hover .service-img img {
  transform: scale(1.06);
}
.service-card-image .service-body {
  padding: 1.35rem 1.35rem 1.5rem;
  border-top: 3px solid var(--green-primary);
  flex: 1;
}
.service-card-image:hover .service-body {
  border-top-color: var(--red-accent);
}

/* ---------- Construction strip ---------- */
.construction-section {
  background: linear-gradient(180deg, var(--grey-100) 0%, var(--white) 100%);
}

.const-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 240px;
  display: block;
}
.const-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.const-card:hover img { transform: scale(1.08); }
.const-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(11,61,46,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: var(--white);
}
.const-card h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.const-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.65rem;
}
.const-card .link {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.const-card .link:hover { color: #ffc9d0; }

/* ---------- Brands ---------- */
.brand-badge {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--green-deep);
  font-size: 0.95rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  transition: border-color var(--transition);
}
.brand-badge:hover {
  border-color: var(--green-primary);
}

/* ---------- Why choose ---------- */
.why-section {
  background: linear-gradient(135deg, var(--green-deep) 0%, #0F4A37 55%, #163D2F 100%);
  color: var(--white);
}
.why-section .section-title,
.why-section .section-label {
  color: var(--white);
}
.why-section .section-label {
  color: #ff8a9a;
}
.why-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: background var(--transition);
}
.why-card:hover {
  background: rgba(255,255,255,0.1);
}
.why-card .icon {
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #ff8a9a;
  font-size: 1.15rem;
}
.why-card h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.why-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  padding: 5rem 0;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11,61,46,0.94), rgba(200,16,46,0.55));
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}
.cta-banner p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 1.75rem;
}

/* ---------- Page hero / breadcrumb ---------- */
.page-hero {
  position: relative;
  padding: 5.5rem 0 4rem;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11,61,46,0.92), rgba(11,61,46,0.7));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 0;
  max-width: 560px;
}
.breadcrumb-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.7);
}
.breadcrumb-nav a { color: rgba(255,255,255,0.85); }
.breadcrumb-nav a:hover { color: var(--white); }
.breadcrumb-nav span.sep { opacity: 0.5; }

/* ---------- Product cards ---------- */
.product-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.product-card .prod-img {
  height: 200px;
  background: var(--grey-100);
  overflow: hidden;
}
.product-card .prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .prod-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.badge-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-primary);
  background: var(--green-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
  align-self: flex-start;
}
.product-card h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.product-card .meta {
  font-size: 0.8rem;
  color: var(--grey-600);
  margin-bottom: 0.5rem;
}
.product-card .desc {
  font-size: 0.875rem;
  color: var(--grey-600);
  flex: 1;
  margin-bottom: 1rem;
}
.product-card .actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.product-card .actions .btn {
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  flex: 1;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.availability.in-stock { color: var(--green-mid); }
.availability.on-request { color: #b78100; }

/* ---------- Filters ---------- */
.filter-panel {
  background: var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}
.filter-panel h5 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.filter-panel .form-label {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--grey-800);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.filter-panel .form-control,
.filter-panel .form-select {
  border-radius: 8px;
  border-color: var(--grey-200);
  font-size: 0.9rem;
}
.filter-panel .form-control:focus,
.filter-panel .form-select:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 0.2rem rgba(20, 92, 63, 0.15);
}

/* ---------- Forms ---------- */
.form-control,
.form-select {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border-color: var(--grey-200);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 0.2rem rgba(20, 92, 63, 0.15);
}
.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--grey-800);
}
.required::after {
  content: " *";
  color: var(--red-accent);
}

/* ---------- Location cards ---------- */
.location-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  transition: box-shadow var(--transition);
}
.location-card:hover { box-shadow: var(--shadow-md); }
.location-card .city {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--green-deep);
  margin-bottom: 0.25rem;
}
.location-card .country {
  color: var(--red-accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}
.location-card .info-row {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--grey-600);
}
.location-card .info-row i {
  color: var(--green-primary);
  margin-top: 0.15rem;
}

.contact-map-wrap {
  background: #000;
  height: 100%;
  min-height: 360px;
}
.contact-map-img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: contain;
  display: block;
  background: #000;
}

/* ---------- Sites map tabs (Reviva-style: map LEFT, tabs RIGHT) ---------- */
.sites-map-section {
  background: var(--white);
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.sites-sc-head {
  margin-bottom: 1.75rem;
}
.sites-sc-head h2 {
  color: var(--green-deep);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.sites-sc-head p {
  color: var(--grey-400);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  white-space: pre-line;
}
.sites-content > .row {
  display: flex;
  flex-wrap: wrap;
}
/* Tabs column rendered first in HTML, shown on RIGHT */
.sites-content > .row > .sites-tabs-col {
  order: 2;
}
.sites-content > .row > .sites-map-col {
  order: 1;
}
.tabs-nav-maps {
  margin: 0;
  border: 0;
  flex-direction: column;
  gap: 1.75rem;
}
.tabs-nav-maps .nav-item {
  width: 100%;
}
.tabs-nav-maps .nav-link {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 40px;
  background-color: #d1d2d3;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
  padding: 0.85rem 4.75rem 0.85rem 1.25rem;
  box-shadow: none !important;
  outline: none !important;
  transition: all 0.3s ease;
}
.tabs-nav-maps .nav-link:hover {
  background-color: #bfc1c2;
  color: #fff;
}
.tabs-nav-maps .nav-link.active {
  background-color: var(--green-mid);
  color: #fff;
  font-size: 0.95rem;
  padding-right: 5.25rem;
}
.map-nav-icon {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #d1d2d3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: var(--green-primary);
  font-size: 1.15rem;
  transition: all 0.3s ease;
}
.tabs-nav-maps .nav-link.active .map-nav-icon {
  width: 68px;
  height: 68px;
  border-color: var(--green-mid);
  color: var(--green-deep);
  font-size: 1.35rem;
}
.pic-site-map {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  min-height: 320px;
}
.pic-site-map img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  display: block;
}
.nav-location {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 1.75rem 0 0;
  padding: 0;
}
.nav-location li {
  color: #8c8e90;
  font-size: 0.95rem;
  font-weight: 700;
  position: relative;
  padding-right: 0.65rem;
  margin-right: 0.65rem;
}
.nav-location li.active {
  color: var(--green-mid);
}
.nav-location li:last-child {
  margin-right: 0;
  padding-right: 0;
}
.nav-location li:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 2px;
  height: 10px;
  background-color: #8c8e90;
}
.nav-location-detail {
  gap: 0.35rem 0;
}
.nav-location-detail li {
  font-size: 0.85rem;
  padding-right: 0.85rem;
  margin-right: 0.85rem;
}
@media (max-width: 767.98px) {
  .sites-content > .row > .sites-tabs-col,
  .sites-content > .row > .sites-map-col {
    order: unset;
  }
  .sites-tabs-col { margin-top: 1.5rem; }
  .tabs-nav-maps { gap: 1.1rem; }
  .tabs-nav-maps .nav-link { font-size: 0.75rem; }
  .map-nav-icon { width: 48px; height: 48px; }
  .tabs-nav-maps .nav-link.active .map-nav-icon { width: 56px; height: 56px; }
  .pic-site-map { min-height: 240px; }
  .pic-site-map img { max-height: 280px; }
}

/* ---------- Vision / Mission ---------- */
.vm-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  border-top: 4px solid var(--green-primary);
  box-shadow: var(--shadow-sm);
}
.vm-card.mission { border-top-color: var(--red-accent); }
.vm-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.goals-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.goals-list li {
  padding: 0.85rem 0 0.85rem 2.75rem;
  border-bottom: 1px solid var(--grey-200);
  position: relative;
  color: var(--grey-800);
}
.goals-list li:last-child { border-bottom: none; }
.goals-list li .goal-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--green-soft);
  color: var(--green-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
}

/* ---------- Brands marquee ---------- */
.brands-section { overflow: hidden; }
.brands-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brands-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  animation: brands-scroll 35s linear infinite;
  padding: 0.5rem 0;
}
.brands-marquee:hover .brands-track { animation-play-state: paused; }
.brand-logo-item {
  flex: 0 0 auto;
  width: 140px;
  height: 90px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  box-shadow: var(--shadow-sm);
}
.brand-logo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.15);
  transition: filter 0.25s ease, transform 0.25s ease;
}
.brand-logo-item:hover img {
  filter: none;
  transform: scale(1.04);
}
.admin-brand-logo {
  width: 64px;
  height: 48px;
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
}
.admin-brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@keyframes brands-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Quote cart ---------- */
.quote-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1050;
  background: var(--red-accent);
  color: var(--white);
  border-radius: 50px;
  padding: 0.85rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}
.quote-float:hover {
  background: var(--red-hover);
  color: var(--white);
  transform: translateY(-2px);
}
.quote-float .count {
  background: var(--white);
  color: var(--red-accent);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.wa-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 1050;
  width: 54px;
  height: 54px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}
.wa-float:hover {
  color: var(--white);
  transform: scale(1.08);
}

.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  z-index: 1040;
  width: 44px;
  height: 44px;
  background: var(--green-deep);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--red-accent); color: var(--white); }

/* ---------- Quote table ---------- */
.quote-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.quote-table th {
  background: var(--green-deep);
  color: var(--white);
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.quote-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--grey-200);
  vertical-align: middle;
  font-size: 0.9rem;
}
.quote-table img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.78);
  padding-top: 4rem;
}
.site-footer h5 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}
.site-footer a {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
}
.site-footer a:hover { color: var(--white); }
.site-footer .footer-about {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer ul li { margin-bottom: 0.55rem; }
.site-footer .footer-logo {
  height: 56px;
  background: var(--white);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
}
.footer-contact li {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.footer-contact i {
  color: #ff8a9a;
  margin-top: 0.2rem;
}
.footer-social {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.25rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-social a:hover {
  background: var(--red-accent);
  color: var(--white);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding: 1.25rem 0;
  font-size: 0.85rem;
}
.footer-bottom a { margin-left: 1rem; }

/* ---------- Product detail ---------- */
.prod-gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grey-100);
  aspect-ratio: 1;
}
.prod-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prod-thumbs {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.75rem;
}
.prod-thumbs button {
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: var(--grey-100);
  cursor: pointer;
}
.prod-thumbs button.active,
.prod-thumbs button:hover {
  border-color: var(--green-primary);
}
.prod-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spec-list {
  list-style: none;
  padding: 0;
}
.spec-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--grey-200);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}
.spec-list li span:first-child {
  color: var(--grey-600);
  font-weight: 500;
}
.spec-list li span:last-child {
  font-weight: 650;
  color: var(--green-deep);
  text-align: right;
}

.qty-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  overflow: hidden;
}
.qty-wrap button {
  width: 40px;
  height: 42px;
  border: none;
  background: var(--grey-100);
  color: var(--green-deep);
  font-size: 1.1rem;
  cursor: pointer;
}
.qty-wrap input {
  width: 56px;
  height: 42px;
  border: none;
  text-align: center;
  font-weight: 650;
}

/* ---------- Admin ---------- */
.admin-wrap {
  min-height: 100vh;
  background: var(--grey-100);
}
.admin-sidebar {
  background: var(--green-deep);
  color: var(--white);
  min-height: 100vh;
  padding: 1.5rem 0;
}
.admin-sidebar a {
  display: block;
  color: rgba(255,255,255,0.75);
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.admin-content { padding: 2rem; }

/* Bafco3-style admin cards / tables */
.admin-card {
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.04), 0 4px 6px -2px rgba(0,0,0,0.02);
  border: none;
  border-top: 4px solid var(--green-primary);
  overflow: hidden;
}
.admin-card-head {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(42, 50, 58, 0.08);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-card-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.admin-card-foot {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(42, 50, 58, 0.08);
}
.admin-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey-600);
  background: var(--grey-100);
  border: none;
  border-bottom: 1px solid rgba(42, 50, 58, 0.08);
  white-space: nowrap;
  vertical-align: middle;
}
.admin-table tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border: none;
  border-bottom: 1px solid rgba(42, 50, 58, 0.08);
  color: var(--ink);
}
.admin-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-table tbody tr:hover {
  background: rgba(232, 242, 237, 0.45);
}
.admin-table .action-btns {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}
.admin-table .action-btns form {
  display: inline-flex;
  margin: 0;
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero-slider { height: 600px; }
  .trust-bar { margin-top: -24px; padding: 1.25rem 0.5rem; }
  .trust-item {
    border-right: none;
    border-bottom: 1px solid var(--grey-200);
    padding: 1rem;
  }
  .trust-item:last-child { border-bottom: none; }
  .navbar-collapse {
    background: var(--white);
    padding: 1rem;
    border-top: 1px solid var(--grey-200);
    margin-top: 0.5rem;
  }
  .navbar .btn-cta {
    width: 100%;
    margin-top: 0.75rem;
    text-align: center;
  }
  .mobile-quick-actions { display: flex; }
  .filter-panel {
    position: static;
    margin-bottom: 1.5rem;
  }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 767.98px) {
  .hero-slider { height: 580px; }
  .top-bar .contact-item span.hide-xs { display: none; }
  .hero-content h1 { font-size: 1.85rem; }
  .hero-content p { font-size: 1rem; }
  .hero-slider .carousel-control-prev,
  .hero-slider .carousel-control-next { display: none; }
  .cta-banner .btn,
  .hero-content .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .quote-float span.label { display: none; }
  .about-image { min-height: 280px; margin-bottom: 1.5rem; }
}

@media (max-width: 575.98px) {
  .hero-slider { height: 560px; }
  .page-hero { padding: 4rem 0 3rem; }
}

/* Header spacer when sticky */
.header-spacer { display: none; height: 0; }
.header-spacer.is-active {
  display: block;
}

/* Product group cards (truck / MEP) */
.group-card {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.group-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.group-card .group-img {
  height: 180px;
  overflow: hidden;
  background: var(--grey-100);
}
.group-card .group-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.group-card .group-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.group-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.group-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  flex: 1;
}
.group-bullets li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.1rem;
  font-size: 0.875rem;
  color: var(--grey-600);
  border-bottom: 1px solid var(--grey-200);
}
.group-bullets li:last-child { border-bottom: none; }
.group-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-accent);
}
.home-groups-row .group-bullets li:nth-child(n+6) { display: none; }

.group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}
.group-actions .btn { flex: 1 1 auto; min-width: 110px; }

/* Product detail page */
.product-detail-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.product-detail-top > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
.product-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grey-100);
  flex: 1;
  min-height: 280px;
  height: 100%;
}
.product-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
}
.product-detail-list li {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  background: var(--green-soft);
  color: var(--green-deep);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  border: 1px solid rgba(20, 92, 63, 0.12);
}
.product-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.85rem;
}
.product-brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  background: var(--grey-100);
  text-align: center;
}
.product-brand-item img {
  width: 100%;
  height: 56px;
  object-fit: contain;
}
.product-brand-item span {
  font-size: 0.75rem;
  color: var(--grey-600);
  font-weight: 600;
}
.other-products-panel {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}
.other-product-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--grey-200);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s ease;
}
.other-product-link:last-of-type { border-bottom: none; }
.other-product-link:hover { color: var(--green-primary); }
.other-product-link .thumb {
  width: 52px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--grey-100);
}
.other-product-link .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.other-product-link .meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.other-product-link .meta strong {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.other-product-link .meta small {
  color: var(--grey-400);
  font-size: 0.75rem;
}
.other-product-link i {
  color: var(--grey-400);
  font-size: 0.85rem;
}
