/* =========================================================
   Golden Pillars for Trading — Home (Arabic / RTL)
   Custom theme layered on Bootstrap 5 RTL
   ========================================================= */
:root {
  --green: #0b4436;          /* sections / buttons / titles */
  --green-dark: #072a24;     /* header band / footer / hero base */
  --green-darker: #02221f;   /* top bar / nav strip (darkest) */
  --nav-active: #174935;     /* active nav highlight box */
  --gold: #c9a13c;
  --gold-2: #e3c069;
  --gray: #f4f5f7;
  --ink: #2b2b2b;
  --muted: #6b7280;
  --line: #e6e8ec;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --hero-gradient: linear-gradient(90deg, rgba(4, 33, 28, .15), rgba(4, 33, 28, .75));
  --hero-sub-gradient: linear-gradient(90deg, rgba(4, 33, 28, .25), rgba(4, 33, 28, .85));
}

* { box-sizing: border-box; }

html, body { max-width: 100%; overflow-x: hidden; direction: rtl; }

body {
  font-family: "Tajawal", system-ui, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
}

/* keep Owl RTL stage from ever forcing page-level horizontal scroll
   (clip the stage only — NOT .owl-carousel, so side nav arrows stay visible) */
.owl-stage-outer { overflow: hidden; max-width: 100%; }

img { max-width: 100%; }
a { text-decoration: none; }

.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }

/* ---------------- Scroll reveal (subtle fade + rise, once per element) ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 2.2rem;
  position: relative;
  color: var(--green);
}
.section-title.on-dark { color: #fff; }
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
  margin: .7rem auto 0;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: .55rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background .2s, transform .2s;
}
.btn-gold:hover { background: #b88e2f; color: #fff; transform: translateY(-2px); }

.text-gold { color: var(--gold) !important; }

/* ---------------- Top utility bar ---------------- */
.topbar {
  background: var(--green-darker);
  color: #cfd8d4;
  font-size: .85rem;
}
.topbar .btn-lang {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  border-radius: 20px;
  padding: .2rem .8rem;
  padding-top: 6px;
  padding-bottom: 1px;
  font-size: .78rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.social { display: flex; gap: .9rem; list-style: none; margin: 0; padding: 0; }
.social a { color: #eef2f0; font-size: .95rem; transition: color .2s; }
.social a:hover { color: var(--gold-2); }

/* ---------------- Header band (logo + quote) ---------------- */
.header-band { background: var(--green-dark); padding: 1.6rem 0; }
.header-band .brand img { height: clamp(74px, 8vw, 100px); width: auto; }
.btn-quote {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff; font-weight: 700; border-radius: 9px;
  padding: .7rem 1.7rem; font-size: 1.02rem; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .55rem; flex: 0 0 auto;
  transition: all .2s;
}
.btn-quote i { color: var(--gold-2); }
.btn-quote:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-quote:hover i { color: #fff; }

/* ---------------- Nav strip ---------------- */
.main-nav { background: var(--green-darker); border-top: 1px solid rgba(255, 255, 255, .06); }
.main-nav .navbar-nav { gap: .15rem; }
.main-nav .nav-link {
  color: #eef2f0;
  font-weight: 500;
  padding: .85rem 1.1rem !important;
  position: relative;
  border-radius: 6px 6px 0 0;
}
.main-nav .nav-link:hover { color: var(--gold-2); }
.main-nav .nav-link.active { color: #fff; background: var(--nav-active); }
.main-nav .nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--gold);
}
.navbar-toggler { border-color: rgba(255, 255, 255, .4); padding: .2rem .5rem; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------------- Hero ---------------- */
.hero { background: var(--green-dark); }
.hero-slide {
  background: var(--green-dark) center/cover no-repeat;
  /* fill the viewport below the header (topbar + band + nav ≈ 252px) */
  min-height: max(420px, calc(100vh - 252px));
  min-height: max(420px, calc(100dvh - 252px));
  display: flex;
  align-items: center;
}
.hero-inner { direction: rtl; width: 100%; }
.hero-text { color: #fff; }
.hero-text h1 {
  font-weight: 800;
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero-text p {
  font-size: clamp(1rem, 1.7vw, 1.4rem);
  color: var(--gold-2);
  font-weight: 500;
  max-width: 640px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
/* hero arrows — thin outline chevrons, no filled circle. Custom buttons (Owl's own
   nav is disabled): plain, unflipped icons; main.js wires each click to whichever
   verified Owl API call (next/prev) actually animates the stage that direction. */
.hero-slider-wrap { position: relative; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; z-index: 5; cursor: pointer;
  color: rgba(255, 255, 255, .85); font-size: 2.6rem; line-height: 1;
  transition: color .2s;
}
.hero-arrow-left { left: 3%; }
.hero-arrow-right { right: 3%; }
.hero-arrow:hover { color: var(--gold-2); }
.hero .owl-dots { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; }
.hero .owl-dots .owl-dot span {
  width: 11px; height: 11px; background: rgba(255, 255, 255, .35); margin: 4px;
}
.hero .owl-dots .owl-dot.active span { background: var(--gold); }

/* ---------------- About ---------------- */
.about h2 { font-weight: 800; color: var(--green); font-size: clamp(1.4rem, 3vw, 2rem); }
.about h2::after {
  content: ""; display: block; width: 60px; height: 3px; background: var(--gold);
  border-radius: 3px; margin-top: .6rem;
}
.about p { color: #4a4a4a; margin-bottom: 1rem; }
.about p strong { color: var(--green); }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Features ---------------- */
.features { background: #fff; }
.feature {
  text-align: center;
  padding: 1rem;
}
.feature img { height: 78px; width: auto; margin-bottom: 1rem; }
.feature h3 { font-size: 1.15rem; font-weight: 800; color: var(--green); margin-bottom: .3rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------------- Products ---------------- */
.products { background: var(--gray); }

/* ---- Product search (category.html — "Our Products" listing) ---- */
.product-search-wrap { position: relative; max-width: 560px; margin: 0 auto 1.75rem; }
.product-search-wrap i.bi-search {
  position: absolute; inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted);
}
.product-search-input {
  padding-inline-start: 2.6rem !important; padding-inline-end: 2.6rem !important;
  border-radius: 24px !important; border: 1px solid var(--line); background: #fff;
  height: 48px; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.product-search-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 68, 54, .12); outline: none; }
.search-clear-btn {
  position: absolute; inset-inline-end: .7rem; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--gray);
  color: var(--muted); display: grid; place-items: center; font-size: .7rem; transition: all .2s;
}
.search-clear-btn:hover { background: var(--line); color: var(--ink); }

.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem;
  list-style: none; padding: 0; margin: 0 0 2rem;
}
.filters button, .filters a {
  border: none; background: transparent; color: #4b5563;
  font-weight: 600; font-size: .95rem; padding: .45rem .95rem; border-radius: 20px;
  transition: all .2s; cursor: pointer; display: inline-block;
}
.filters button:hover, .filters a:hover { color: var(--green); }
.filters button.active, .filters a.active { background: var(--green); color: #fff; }

.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; height: 100%; text-align: start; position: relative;
  transition: box-shadow .25s, transform .25s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

/* Manufacturer / category badges — absolutely positioned over the card (like
   .badge-best), not in normal flow, so they never add height to the card/row.
   Sit at the opposite corner from .badge-best so the two never collide. */
.product-meta {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-end; gap: .25rem;
  max-width: calc(100% - 60px);
}
.product-meta-manufacturer,
.product-meta-category {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .15rem .5rem; border-radius: 6px;
  font-size: .64rem; line-height: 1.3; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.product-meta-manufacturer { background: rgba(11, 68, 54, .08); color: var(--green); font-weight: 700; transition: background .2s; }
.product-meta-manufacturer:hover { background: rgba(11, 68, 54, .16); }
.product-meta-manufacturer i { color: var(--gold); }
.product-meta-category { background: #f1f2f4; color: var(--muted); font-weight: 600; }

/* Fixed-size square frame, identical on every card regardless of the source photo's
   own shape or the card's width — margin-top clears the overlaid badges, margin:auto
   centers the box itself inside the (wider) card. object-fit:contain + no background
   on the box means both transparent PNG cut-outs and plain square photos (with their
   own background) render as-is, unmodified, never cropped or stretched. */
.product-thumb {
    width: 100%;
    height: 300px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f7f6f6;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.product-card p.title {
  font-size: .82rem; color: #374151; min-height: 3.4em; margin-bottom: .7rem;
}
.product-card-actions { display: flex; align-items: center; gap: .5rem; }
.product-card .details {
  display: inline-block; flex: 1 1 auto; text-align: center; font-size: .8rem; font-weight: 700; color: var(--green);
  border: 1px solid var(--green); border-radius: 6px; padding: .25rem .9rem;
  transition: all .2s;
}
.product-card .details:hover { background: var(--green); color: #fff; }
.product-card .quote-link {
  flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 6px; color: var(--gold); font-size: .82rem;
  transition: all .2s;
}
.product-card .quote-link:hover { background: var(--gold); color: #fff; }
.badge-best {
  position: absolute; top: 10px; inset-inline-start: 10px;
  background: var(--green); color: #fff; font-size: .68rem; font-weight: 700;
  padding: .2rem .55rem; border-radius: 6px;
}
.view-more-products {
  margin-top: 2rem;
  background: var(--green);
}
.view-more-products:hover { background: var(--green-dark); }

/* ---------------- Category / Categories pages (category.html, categories.html) ---------------- */
.page-header { background: var(--green-dark); padding: 2.4rem 0; }
.page-header h1 { color: #fff; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .5rem; }
.page-header p.lead { color: #cfd8d4; font-size: .98rem; max-width: 640px; margin: .9rem 0 0; }
.page-header .crumb { color: #b8c4bf; font-size: .9rem; display: flex; gap: .4rem; align-items: center; }
.page-header .crumb a { color: #b8c4bf; }
.page-header .crumb a:hover { color: var(--gold-2); }
.page-header .crumb .sep { color: rgba(255, 255, 255, .35); }
.page-header .crumb .cur { color: var(--gold-2); }

.category-page .filters { margin-top: 2rem; }
.empty-note { text-align: center; color: var(--muted); padding: 3rem 0; }
.empty-note a { color: var(--gold-2); font-weight: 600; text-decoration: underline; }

/* Category header: representative image + description + live product count
   (hidden for the "all" pseudo-category, which has no single image). */
.cat-header-row { display: flex; align-items: center; gap: 1.5rem; }
.cat-header-img { flex: 0 0 auto; width: 96px; height: 96px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cat-header-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 575.98px) {
  .cat-header-row { gap: 1rem; }
  .cat-header-img { width: 64px; height: 64px; }
}

/* Company page header: same box as the category header, but the logo needs
   to keep its own proportions (contain, not cover) on a plain white plate. */
.company-logo-box { background: #fff; display: grid; place-items: center; padding: .6rem; }
.company-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.company-logo-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: var(--green); color: #fff; font-weight: 800; font-size: 1.6rem;
}
.page-header .category-tile-count {
  display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem;
  background: rgba(255, 255, 255, .12); color: var(--gold-2);
}

/* ---- Filter panel: single element, inline bar on desktop, real drawer on
   mobile — via Bootstrap's responsive offcanvas (offcanvas-lg), so there is
   only ever one copy of the filter controls in the DOM. ---- */
.filter-toggle-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: .5rem 1rem; font-size: .9rem; font-weight: 700; color: var(--green);
  margin-bottom: 1.25rem; transition: border-color .2s;
}
.filter-toggle-btn:hover { border-color: var(--green); }
.filter-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.filter-field { display: flex; flex-direction: column; gap: .35rem; min-width: 220px; }
.filter-field label { font-size: .82rem; font-weight: 700; color: var(--green); }
.filter-actions { display: flex; align-items: center; gap: 1rem; }
.btn-clear-filters { font-size: .85rem; font-weight: 600; color: var(--muted); transition: color .2s; }
.btn-clear-filters:hover { color: var(--green); }

@media (min-width: 992px) {
  .filter-drawer {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1rem 1.25rem; margin-bottom: 1.75rem;
  }
  .filter-drawer .offcanvas-body { padding: 0; }
  .filter-form { flex-wrap: nowrap; }
  .filter-actions { margin-inline-start: auto; }
}

/* ---- Pagination ---- */
.pagination-bar { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.page-btn {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; color: var(--green); font-weight: 600; font-size: .9rem;
  padding: 0 .5rem; transition: all .2s;
}
.page-btn:hover { border-color: var(--green); }
.page-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* Secondary-tier section heading (Brands, New Products) — quieter than
   .section-title on purpose: smaller, no gold underline bar, so these two
   sections read as supporting content rather than competing with Categories. */
.section-title-sm {
  font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; color: var(--green);
  margin-bottom: 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.section-title-sm .more-link { font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.section-title-sm .more-link:hover { color: var(--green); }

/* ---- Categories page: category tiles (PRIMARY — the page's main content,
   given the biggest cards, real photography, and the strongest shadow/hover) ---- */
.categories-section { background: var(--gray); }
.category-tile {
  display: block; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; height: 100%;
  transition: transform .25s, box-shadow .25s;
}
.category-tile:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0, 0, 0, .14); }
.category-tile-img { height: 190px; overflow: hidden; background: var(--gray); }
.category-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.category-tile-body { padding: 1.3rem 1.4rem 1.5rem; text-align: start; }
.category-tile-count {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .74rem; font-weight: 700; color: var(--gold);
  background: rgba(201, 161, 60, .1); border-radius: 6px; padding: .2rem .55rem;
  margin-bottom: .6rem;
}
.category-tile h3 { font-size: 1.15rem; font-weight: 800; color: var(--green); margin-bottom: .4rem; }
.category-tile p { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; min-height: 2.6em; }
.category-tile .btn-gold { width: 100%; justify-content: center; }

/* ---- Categories page: brand cards (SECONDARY — compact, denser grid,
   plain white background, no shadow/hover-lift — deliberately quieter) ---- */
.brands-section { background: #fff; }
.brand-card {
  display: flex; align-items: center; gap: .9rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; height: 100%;
}
.brand-logo {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800; font-size: .95rem;
  display: grid; place-items: center;
}
.brand-card-body { min-width: 0; }
.brand-card h3 { font-size: .95rem; font-weight: 700; color: var(--green); margin: 0 0 .15rem; }
.brand-card p { font-size: .78rem; color: var(--muted); margin: 0 0 .5rem; }
.brand-card .details { font-size: .78rem; font-weight: 700; color: var(--green); border: 1px solid var(--green); border-radius: 6px; padding: .2rem .7rem; transition: all .2s; }
.brand-card .details:hover { background: var(--green); color: #fff; }

/* Desktop only: logo above the name (centered column) instead of beside it.
   Tablet/mobile keep the existing side-by-side row layout untouched. Card
   styling (border/radius/padding/colors/hover) is unchanged — only the
   internal arrangement changes. .details gets margin-top:auto so the CTA
   stays bottom-aligned across cards even when names/taglines wrap differently. */
@media (min-width: 992px) {
  .brand-card { flex-direction: column; text-align: center; }
  .brand-logo { margin-bottom: .3rem; }
  .brand-card-body { width: 100%; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; }
  .brand-card .details { margin-top: auto; }
}

/* ---- Categories page: New Products (SECONDARY — reuses the exact same
   .product-card component as the homepage, just fewer of them) ---- */
.new-products-section { background: var(--gray); }

/* ---------------- CTA ---------------- */
.cta { background: var(--gray); }
.cta-box {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; align-items: stretch; flex-wrap: wrap;
}
.cta-img { flex: 1 1 320px; min-height: 220px; background: center/cover no-repeat; }
.cta-body { flex: 2 1 420px; padding: clamp(1.5rem, 4vw, 3rem); }
.cta-body h2 { font-weight: 800; color: var(--green); font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.cta-body p { color: var(--muted); margin: .6rem 0 1.4rem; }

/* ---------------- Events ---------------- */
.events { background: var(--green); }
.event-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); overflow: hidden;
}
.event-card img { width: 100%; height: 200px; object-fit: cover; }
.event-card .ev-body { padding: 1rem 1.2rem; }
.event-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin: 0 0 .4rem; }
.event-card .ev-date { color: var(--gold-2); font-size: .85rem; margin: 0; }
/* Arrows are laid out as real flex siblings of the card track — [prev][cards][next] —
   so they always stay inside the container/green section, never float outside it. */
/* force LTR just for the row's physical child order (prev-button, track, next-button)
   so "previous" always lands on the visual left and "next" on the visual right,
   regardless of the page's overall RTL direction; RTL is restored inside .events-track
   for the carousel/cards themselves. */
.events-row { display: flex; align-items: center; gap: 1rem; direction: ltr; }
.events-track { flex: 1 1 auto; min-width: 0; direction: rtl; } /* lets the carousel shrink inside the row */

.events-arrow {
  flex: 0 0 auto;
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center;
  font-size: 1.4rem; line-height: 67px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  transition: transform .2s, background .2s, color .2s;
}
/* far left — "previous" — white circle, dark-green arrow */
.events-arrow-prev { background: #fff; color: var(--green); }
/* far right — "next" — gold circle, white arrow */
.events-arrow-next { background: var(--gold); color: #fff; }
.events-arrow:hover { transform: scale(1.08); }
.events-arrow-prev:hover { background: var(--gold); color: #fff; }
.events-arrow-next:hover { background: #fff; color: var(--green); }

@media (max-width: 575.98px) {
  .events-row { gap: .5rem; }
  .events-arrow { width: 42px; height: 42px; font-size: 1.15rem; }
}
.more-events {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--gold); color: var(--gold-2); font-weight: 600;
  border-radius: 8px; padding: .5rem 1.4rem; margin-top: 2rem; transition: all .2s;
}
.more-events:hover { background: var(--gold); color: #fff; }

/* ---------------- Clients ---------------- */
.clients { background: #fff; }
/* extra vertical breathing room so the scaled-up center logo has room to grow */
.clients-carousel .owl-stage-outer { padding: 1.75rem 0; }
.client-logo {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  height: 120px; display: grid; place-items: center; padding: 1.2rem; margin: 0 6px;
  transition: transform .45s ease, opacity .45s ease, box-shadow .45s ease, border-color .45s ease;
  /* progressive scale-down by distance from the centered slide (--dist set by JS);
     far edge → smaller … medium → LARGE active slide → medium … smaller → far edge */
  transform: scale(clamp(0.66, calc(1 - 0.16 * var(--dist, 2)), 1));
  opacity: clamp(0.55, calc(1 - 0.18 * var(--dist, 2)), 1);
}
.client-logo img { max-height: 72px; width: auto; object-fit: contain; filter: grayscale(15%); }
.clients-carousel .owl-item.center .client-logo {
  transform: scale(1.18);
  opacity: 1;
  box-shadow: var(--shadow);
  border-color: var(--gold);
  position: relative;
  z-index: 3;
}
.clients .owl-dots { text-align: center; margin-top: 1.4rem; }
.clients .owl-dots .owl-dot span { width: 9px; height: 9px; background: #cfd6d3; }
.clients .owl-dots .owl-dot.active span { background: var(--gold); width: 22px; border-radius: 5px; }

/* ---------------- Testimonials ---------------- */
.testimonials { background: var(--gray); }
.testi-card {
  border-radius: var(--radius); padding: 2rem 1.8rem; height: 100%;
  position: relative; box-shadow: var(--shadow);
}
.testi-card.light { background: #fff; color: var(--ink); }
.testi-card.dark { background: var(--green); color: #fff; }
.testi-card .name { font-weight: 800; font-size: 1.05rem; margin-bottom: .6rem; }
.testi-card.light .name { color: var(--green); }
.testi-card .quote-txt { font-size: .95rem; line-height: 1.9; }
.testi-card.light .quote-txt { color: #4b5563; }
.testi-card.dark .quote-txt { color: #e7ede9; }
.testi-card .qmark { font-size: 2.6rem; line-height: 1; color: var(--gold); opacity: .6; }
.testi-card .tag {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem;
  font-size: .82rem; font-weight: 600;
}
.testi-card.light .tag { color: var(--green); }
.testi-card.dark .tag { color: var(--gold-2); }
.testimonials .owl-dots { text-align: center; margin-top: 1.6rem; }
.testimonials .owl-dots .owl-dot span { width: 9px; height: 9px; background: #cfd6d3; }
.testimonials .owl-dots .owl-dot.active span { background: var(--gold); width: 22px; border-radius: 5px; }

/* ---------------- Stats ---------------- */
.stats { background: #fff; }
.stat { text-align: center; padding: 1rem; }
.stat img { height: 66px; width: auto; margin-bottom: .8rem; }
.stat .num { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; color: var(--gold); }
.stat .lbl { color: var(--green); font-weight: 600; margin: 0; }

/* ---------------- Footer ---------------- */
.footer { background: var(--green-dark); color: #cfd8d4; }
.footer .footer-top { padding: 3.2rem 0; }
.footer h2 { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 1.4rem; }
.footer img.f-logo { height: 74px; width: auto; margin-bottom: 1.1rem; }
.footer p { font-size: .9rem; color: #b8c4bf; line-height: 2; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: .75rem; }
.footer a { color: #cfd8d4; transition: color .2s; }
.footer a:hover { color: var(--gold-2); }
/* section links with gold chevron */
.footer .links a {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem;
}
.footer .links a::before {
  content: "\F285";                      /* bi-chevron-left */
  font-family: "bootstrap-icons"; color: var(--gold); font-size: .8rem;
}
/* contact rows with gold icon box */
.footer .contact li { display: flex; align-items: center; gap: .7rem; font-size: .92rem; }
.footer .contact .ic {
  width: 30px; height: 30px; border-radius: 7px; flex: 0 0 30px;
  display: grid; place-items: center;
  background: rgba(201, 161, 60, .15); color: var(--gold-2); font-size: .95rem;
}
.footer .copyright {
  background: var(--green); padding: 1.1rem 0;
  font-size: .85rem; color: #cbd6d1;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 991.98px) {
  /* ---- Mobile side-drawer navigation (Bootstrap offcanvas) ---- */
  .main-drawer { background: var(--green-dark); color: #fff; width: min(84vw, 320px); }
  .main-drawer .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding: 1rem 1.25rem;
  }
  .main-drawer .drawer-logo { height: 46px; width: auto; }
  .main-drawer .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .85; }
  .main-drawer .offcanvas-body { padding: .5rem 0 1.25rem; display: flex; flex-direction: column; }
  .main-drawer .navbar-nav { width: 100%; }
  .main-drawer .nav-link {
    color: #eef2f0; font-weight: 500; padding: .95rem 1.4rem !important;
    border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .07);
  }
  .main-drawer .nav-link::after { display: none !important; }
  .main-drawer .nav-link:hover { background: rgba(255, 255, 255, .05); color: var(--gold-2); }
  .main-drawer .nav-link.active { background: var(--nav-active); color: #fff; }
  .main-drawer .drawer-quote { margin: 1.25rem 1.25rem 0; }
}

/* ---- compact header + hero on tablets / phones ---- */
@media (max-width: 767.98px) {
  .header-band { padding: .9rem 0; }
  /* only the logo remains here on mobile (quote button moves into the menu) — center it */
  .header-band .container { justify-content: center !important; }
  .header-band .brand img { height: 54px; }
  .btn-quote { padding: .55rem 1rem; font-size: .9rem; }

  /* Hero: show the full composition (correct aspect ratio, no crop) as a strip
     at the bottom, with the text stacked above it. */
  .hero-slide {
    min-height: auto !important;
    background: var(--green-dark) url('../images/hero-mobile.jpg') bottom center / 100% auto no-repeat !important;
    display: block;
    padding: 2.2rem 0 63vw;          /* bottom space ≈ image height (980×614 ⇒ 62.7vw) */
    text-align: center;
  }
  .hero-inner { padding-inline: 1.25rem; }
  .hero-text { max-width: 100%; }
  .hero-text h1 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .hero-text p { margin: 0 auto; }

  /* Products filters: one swipeable row of chips instead of wrapping text */
  .filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    gap: .5rem;
    margin-inline: -.75rem;
    padding: 0 .75rem .6rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters li { flex: 0 0 auto; }
  .filters button, .filters a {
    white-space: nowrap;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--line);
    padding: .5rem 1rem;
  }
  .filters button.active, .filters a.active { border-color: var(--green); }
}
/* on the smallest screens the edge chevrons crowd the text — dots + swipe suffice */
@media (max-width: 575.98px) {
  .hero .owl-nav { display: none; }
}

/* =========================================================
   About Us page (about.html)
   ========================================================= */

/* ---- Hero: .page-header base (title/lead/crumb styles) + a photo backdrop ---- */
.about-hero {
  background: var(--hero-sub-gradient), url('../images/hero.jpg') center/cover no-repeat;
  padding: 0;
  min-height: clamp(340px, 40vw, 460px);
  display: flex;
  align-items: center;
}
.about-hero .container { padding-block: clamp(2.2rem, 6vw, 3.6rem); }
.about-hero p.lead { max-width: 640px; }

/* ---- About the company: bullet checklist (keeps the text column from
   reading as one large block, per design brief) ---- */
.about-points {
  list-style: none; padding: 0; margin: 1.3rem 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem 1.2rem;
}
.about-points li { display: flex; align-items: flex-start; gap: .55rem; font-size: .92rem; color: #4a4a4a; }
.about-points li i { color: var(--gold); font-size: 1.05rem; margin-top: .2rem; flex: 0 0 auto; }
@media (max-width: 575.98px) { .about-points { grid-template-columns: 1fr; } }

/* ---- Vision & Mission: two visually-paired cards, dark/light like .testi-card ---- */
.vision-mission { background: var(--gray); }
.vm-card { border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.6rem, 3vw, 2.4rem); height: 100%; }
.vm-card.dark { background: var(--green); color: #fff; }
.vm-card.light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.vm-icon {
  width: 56px; height: 56px; border-radius: 50%; font-size: 1.4rem;
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.vm-card.dark .vm-icon { background: rgba(255, 255, 255, .12); color: var(--gold-2); }
.vm-card.light .vm-icon { background: rgba(11, 68, 54, .08); color: var(--green); }
.vm-card h3 { font-weight: 800; font-size: 1.3rem; margin-bottom: .8rem; }
.vm-card.dark h3 { color: #fff; }
.vm-card.light h3 { color: var(--green); }
.vm-card p { margin: 0; line-height: 1.9; font-size: .97rem; }
.vm-card.dark p { color: #e7ede9; }
.vm-card.light p { color: #4b5563; }

/* ---- Our Values grid ---- */
.values-section { background: #fff; }
.value-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.1rem) 1.4rem; text-align: center; height: 100%;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.value-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.1rem;
  background: rgba(11, 68, 54, .08); color: var(--green);
  display: grid; place-items: center; font-size: 1.6rem;
}
.value-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--green); margin-bottom: .5rem; }
.value-card p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---- Company History: alternating desktop timeline, single-column on mobile.
   Uses logical inset-inline-* / margin-inline-* so it mirrors correctly for RTL/LTR. ---- */
.history-section { background: var(--gray); }
.timeline { position: relative; margin-top: 1rem; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  inset-inline-start: 50%; margin-inline-start: -1px;
  width: 2px; background: var(--line);
}
.timeline-item { position: relative; display: flex; width: 100%; padding-block: 1.1rem; }
.timeline-item:nth-child(odd) { justify-content: flex-start; }
.timeline-item:nth-child(even) { justify-content: flex-end; }
.timeline-dot {
  position: absolute; top: 1.7rem; inset-inline-start: 50%; margin-inline-start: -7px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--gold);
  border: 3px solid #fff; box-shadow: 0 0 0 3px rgba(201, 161, 60, .25); z-index: 2;
}
.timeline-card {
  width: calc(50% - 2.4rem); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.3rem 1.5rem;
}
.timeline-year {
  display: inline-block; background: var(--green); color: #fff; font-weight: 800;
  font-size: .8rem; padding: .2rem .7rem; border-radius: 6px; margin-bottom: .5rem;
}
.timeline-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--green); margin: .3rem 0 .4rem; }
.timeline-card p { font-size: .88rem; color: var(--muted); margin: 0; }
@media (max-width: 767.98px) {
  .timeline::before { inset-inline-start: 20px; margin-inline-start: 0; }
  .timeline-item, .timeline-item:nth-child(even) { justify-content: flex-start; padding-inline-start: 3rem; }
  .timeline-dot { inset-inline-start: 20px; margin-inline-start: -7px; }
  .timeline-card { width: 100%; }
}

/* ---- Our Team ---- */
.team-section { background: #fff; }
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: center; height: 100%;
  transition: transform .25s, box-shadow .25s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-photo {
  height: 210px; background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: grid; place-items: center;
}
.team-avatar {
  width: 88px; height: 88px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 1.5rem;
  background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .35);
  display: grid; place-items: center;
}
.team-body { padding: 1.3rem 1.2rem 1.5rem; }
.team-body h3 { font-size: 1.05rem; font-weight: 800; color: var(--green); margin-bottom: .2rem; }
.team-role { display: block; font-size: .82rem; font-weight: 700; color: var(--gold); margin-bottom: .7rem; }
.team-bio { font-size: .85rem; color: var(--muted); margin: 0; }

/* =========================================================
   Contact Us page (contact.html)
   ========================================================= */

/* ---- Contact info cards ---- */
.contact-info-section { background: #fff; }
.contact-info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem) 1.3rem; text-align: center; height: 100%;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.contact-info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.contact-info-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.1rem;
  background: rgba(11, 68, 54, .08); color: var(--green);
  display: grid; place-items: center; font-size: 1.6rem;
}
.contact-info-card h3 { font-size: 1rem; font-weight: 800; color: var(--green); margin-bottom: .5rem; }
.contact-info-card p { margin: 0; }
.contact-info-card a.contact-info-value {
  font-size: .95rem; font-weight: 700; color: #4b5563; transition: color .2s;
}
.contact-info-card a.contact-info-value:hover { color: var(--gold); }
.contact-info-card p.contact-info-value { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.7; }

/* ---- Contact form + Working hours ---- */
.contact-main-section { background: var(--gray); }
.contact-form-card, .hours-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.6rem, 3vw, 2.4rem); height: 100%;
}
.contact-form-card h2, .hours-card h2 {
  font-weight: 800; color: var(--green); font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin-bottom: 1.5rem;
}
.contact-form .form-label { font-size: .85rem; font-weight: 700; color: var(--green); margin-bottom: .4rem; }
.contact-form .form-control {
  border: 1px solid var(--line); border-radius: 8px; padding: .65rem .95rem;
  font-size: .95rem; color: var(--ink); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form .form-control:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 68, 54, .12); outline: none;
}
.contact-form textarea.form-control { min-height: 140px; resize: vertical; }
.contact-form button[type="submit"] { margin-top: .25rem; }
.contact-form-note {
  display: none; align-items: center; gap: .5rem; margin-top: 1.1rem;
  background: rgba(11, 68, 54, .08); color: var(--green); font-weight: 600; font-size: .9rem;
  border-radius: 8px; padding: .7rem 1rem;
}
.contact-form-note.is-visible { display: flex; }

.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .93rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list .day { font-weight: 700; color: var(--green); }
.hours-list .time { color: var(--muted); font-weight: 500; }
.hours-list li.closed .time { color: var(--gold); font-weight: 700; }

/* ---- Follow us / social ---- */
.social-follow { background: var(--green); }
.social-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.social-links a {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; font-size: 1.35rem; display: grid; place-items: center;
  transition: all .2s;
}
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateY(-4px); }

/* =========================================================
   Events & Achievements page (events.html)
   ========================================================= */

/* ---- Events & Conferences grid ---- */
.events-grid-section { background: #fff; }
.event-grid-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.event-grid-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.event-grid-img { height: 200px; overflow: hidden; background: var(--gray); }
.event-grid-img img { width: 100%; height: 100%; object-fit: cover; }
.event-grid-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1 1 auto; text-align: start; }
.event-grid-meta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: .6rem; font-size: .8rem; color: var(--muted); }
.event-grid-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.event-grid-meta i { color: var(--gold); }
.event-grid-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--green); margin-bottom: .5rem; }
.event-grid-card p.desc { font-size: .88rem; color: #4a4a4a; margin-bottom: 1.1rem; flex: 1 1 auto; }
.event-grid-card .details {
  display: inline-block; align-self: flex-start; font-size: .8rem; font-weight: 700; color: var(--green);
  border: 1px solid var(--green); border-radius: 6px; padding: .25rem .9rem; background: transparent;
  transition: all .2s;
}
.event-grid-card .details:hover { background: var(--green); color: #fff; }

/* ---- Visual gallery ---- */
.gallery-section { background: var(--gray); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow); border: none; padding: 0; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-item .gallery-overlay {
  position: absolute; inset: 0; background: rgba(4, 33, 28, 0); color: #fff;
  display: grid; place-items: center; font-size: 1.3rem; opacity: 0; transition: all .25s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover .gallery-overlay { background: rgba(4, 33, 28, .45); opacity: 1; }
@media (max-width: 767.98px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Certificates & Achievements ---- */
.certificates-section { background: #fff; }
.certificate-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; height: 100%; padding: 0; cursor: pointer; text-align: start;
  transition: transform .25s, box-shadow .25s;
}
.certificate-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.certificate-visual {
  aspect-ratio: 4 / 3; background: linear-gradient(135deg, rgba(11, 68, 54, .07), rgba(201, 161, 60, .12));
  display: grid; place-items: center;
}
.certificate-badge {
  width: 84px; height: 84px; border-radius: 50%; background: var(--green); color: var(--gold-2);
  display: grid; place-items: center; font-size: 2rem; border: 3px solid #fff; box-shadow: 0 8px 20px rgba(11, 68, 54, .25);
}
.certificate-body { padding: 1.2rem 1.3rem 1.4rem; }
.certificate-card h3 { font-size: 1rem; font-weight: 800; color: var(--green); margin-bottom: .3rem; }
.certificate-issuer { display: block; font-size: .8rem; font-weight: 700; color: var(--gold); }
.certificate-year { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .6rem; }
.certificate-card p.desc { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---- Shared lightbox modal (event details, gallery photos, certificates) ---- */
.lightbox-modal .modal-content { border-radius: var(--radius); overflow: hidden; border: none; background: var(--green-dark); }
.lightbox-modal .modal-body { padding: 0; position: relative; }
.lightbox-modal .btn-close {
  position: absolute; top: .8rem; inset-inline-end: .8rem; z-index: 5;
  background-color: #fff; border-radius: 50%; opacity: .9; padding: .5rem;
}
.lightbox-img-wrap { background: #000; display: flex; align-items: center; justify-content: center; }
.lightbox-img-wrap img { width: 100%; max-height: 62vh; object-fit: contain; display: block; }
.lightbox-caption { padding: 1.2rem 1.4rem; color: #fff; }
.lightbox-caption h3 { color: #fff; font-weight: 800; margin-bottom: .5rem; font-size: 1.1rem; }
.lightbox-caption .meta { color: var(--gold-2); font-size: .85rem; margin-bottom: .7rem; display: flex; gap: 1.1rem; flex-wrap: wrap; }
.lightbox-caption .meta span { display: inline-flex; align-items: center; gap: .35rem; }
.lightbox-caption p.desc { color: #d7ded9; font-size: .9rem; margin: 0; line-height: 1.8; }

/* =========================================================
   Request a Quote page (quote.html)
   ========================================================= */
.quote-form-section { background: var(--gray); }

.quote-page .req { color: var(--gold); margin-inline-start: .15rem; }
.quote-page .optional-tag { font-size: .72rem; font-weight: 600; color: var(--muted); margin-inline-start: .4rem; }

/* required/optional error + focus states layered on top of the .contact-form
   input styling already defined for contact.html — reused verbatim here */
.contact-form .form-select {
  border: 1px solid var(--line); border-radius: 8px; padding: .65rem .95rem;
  font-size: .95rem; color: var(--ink); background-color: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form .form-select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 68, 54, .12); outline: none; }
.contact-form .form-control.is-invalid,
.contact-form .form-select.is-invalid { border-color: #dc3545; }
.contact-form .form-control.is-invalid:focus,
.contact-form .form-select.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220, 53, 69, .15); }
.contact-form .invalid-feedback { font-size: .8rem; margin-top: .35rem; }

/* ---- Select2 (facility type) — skin the vanilla select2 default theme to
   match this page's plain Bootstrap inputs (border/height/radius/focus ring) ---- */
.quote-page .select2-container { width: 100% !important; }
.quote-page .select2-container--default .select2-selection--single {
  height: 38px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; display: flex; align-items: center;
  transition: border-color .2s, box-shadow .2s;
}
.quote-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 .75rem; line-height: normal; color: var(--ink); font-size: 1rem;
}
.quote-page .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #6c757d; }
.quote-page .select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px; top: 0; }
.quote-page .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--muted) transparent transparent transparent;
}
.quote-page .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent var(--muted) transparent;
}
.quote-page .select2-container--default.select2-container--focus .select2-selection--single,
.quote-page .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 68, 54, .12); outline: none;
}
.quote-page .select2-dropdown {
  border-color: var(--line); border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow); font-size: .95rem;
}
.quote-page .select2-search--dropdown { padding: .5rem; }
.quote-page .select2-search--dropdown .select2-search__field { border: 1px solid var(--line); border-radius: 6px; padding: .4rem .6rem; }
.quote-page .select2-results__option { padding: .5rem .85rem; }
.quote-page .select2-container--default .select2-results__option--highlighted[aria-selected] { background-color: var(--green); color: #fff; }
.quote-page .select2-container--default .select2-results__option[aria-selected=true] { background-color: var(--gray); color: var(--ink); }

/* ---- Section separation: two info cards side by side on desktop ---- */
.quote-section-card-title {
  font-weight: 800; color: var(--green); font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  margin-bottom: 1.4rem; display: flex; align-items: center; gap: .6rem;
}
.quote-section-card-title i { color: var(--gold); font-size: 1.1rem; }

/* ---- Product picker (searchable multi-select combobox) ---- */
.product-picker { position: relative; }
.product-picker-input-wrap { position: relative; }
.product-picker-input-wrap i.bi-search {
  position: absolute; inset-inline-start: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted);
}
.product-search-input { padding-inline-start: 2.4rem !important; }

.picker-selected-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.picker-count { font-size: .8rem; color: var(--gold); font-weight: 700; white-space: nowrap; }

.product-listbox {
  position: absolute; z-index: 20; inset-inline: 0; top: calc(100% + .4rem);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  max-height: 280px; overflow-y: auto; list-style: none; margin: 0; padding: .4rem;
}
.product-listbox[hidden] { display: none; }
.product-option {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .55rem .7rem; border-radius: 8px; cursor: pointer; font-size: .9rem; color: var(--ink);
}
.product-option .opt-title { font-weight: 600; }
.product-option .opt-meta { font-size: .75rem; color: var(--muted); flex: 0 0 auto; }
.product-option:hover, .product-option.is-active { background: rgba(11, 68, 54, .07); }
.product-empty { padding: .8rem; text-align: center; color: var(--muted); font-size: .85rem; }

.selected-products { margin-bottom: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.selected-products .empty-note { font-size: .85rem; color: var(--muted); margin: 0; }
.selected-chip {
  display: flex; align-items: center; gap: .5rem; background: rgba(11, 68, 54, .06);
  border: 1px solid rgba(11, 68, 54, .16); border-radius: 20px; padding: .4rem .5rem .4rem 1rem;
  font-size: .85rem; color: var(--green); font-weight: 600; max-width: 100%;
}
.selected-chip .chip-cat {
  font-size: .68rem; font-weight: 600; color: var(--muted); background: #fff;
  border-radius: 6px; padding: .1rem .45rem; white-space: nowrap;
}
.selected-chip button {
  border: none; background: rgba(11, 68, 54, .12); color: var(--green);
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto; line-height: 1;
  display: grid; place-items: center; font-size: .85rem; transition: all .15s;
}
.selected-chip button:hover { background: var(--green); color: #fff; }

/* ---- Submit area + success state ---- */
.quote-submit { text-align: center; padding-top: .5rem; }
.quote-submit .btn-gold { min-width: 220px; justify-content: center; }
.quote-submit .btn-gold[disabled] { opacity: .8; cursor: not-allowed; transform: none; }
.quote-submit .btn-gold .spinner-border {
  width: 1rem; height: 1rem; border-width: 2px; margin-inline-end: .5rem; vertical-align: -2px; display: none;
}
.quote-submit .btn-gold .btn-loading-label { display: none; }
.quote-submit .btn-gold.is-loading .spinner-border { display: inline-block; }
.quote-submit .btn-gold.is-loading .btn-icon,
.quote-submit .btn-gold.is-loading .btn-label { display: none; }
.quote-submit .btn-gold.is-loading .btn-loading-label { display: inline; }
.quote-reassurance {
  font-size: .82rem; color: var(--muted); margin-top: .9rem;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.quote-reassurance i { color: var(--gold); }

.quote-success {
  display: none; text-align: center; background: rgba(11, 68, 54, .06);
  border: 1px solid rgba(11, 68, 54, .18); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.6rem) 1.5rem;
}
.quote-success.is-visible { display: block; }
.quote-success .icon {
  width: 68px; height: 68px; border-radius: 50%; background: var(--green); color: #fff;
  font-size: 1.9rem; display: grid; place-items: center; margin: 0 auto 1.1rem;
}
.quote-success h3 { color: var(--green); font-weight: 800; margin-bottom: .5rem; font-size: 1.25rem; }
.quote-success p { color: #4a4a4a; margin: 0 auto 1.3rem; max-width: 480px; }
.quote-success .details {
  display: inline-block; font-size: .85rem; font-weight: 700; color: var(--green);
  border: 1px solid var(--green); border-radius: 6px; padding: .45rem 1.3rem; background: transparent;
  transition: all .2s;
}
.quote-success .details:hover { background: var(--green); color: #fff; }

/* =========================================================
   Key Clients page (clients.html)
   ========================================================= */

/* ---- Who We Serve: customer-segment cards ---- */
.segments-section { background: #fff; }
.segment-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; height: 100%; transition: transform .25s, box-shadow .25s;
}
.segment-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.segment-card-img { height: 190px; overflow: hidden; background: var(--gray); }
.segment-card-img img { width: 100%; height: 100%; object-fit: cover; }
.segment-card-body { padding: 1.3rem 1.4rem 1.5rem; text-align: start; }
.segment-icon {
  width: 52px; height: 52px; border-radius: 50%; margin-bottom: .9rem;
  background: rgba(11, 68, 54, .08); color: var(--green); display: grid; place-items: center; font-size: 1.3rem;
}
.segment-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--green); margin-bottom: .5rem; }
.segment-card p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---- Trust / experience stats (reuses the homepage .stat number/label
   look, with icon badges instead of PNGs so the figures fit this page) ---- */
.trust-section { background: var(--gray); }
.trust-stat { text-align: center; padding: 1rem; }
.trust-stat-icon {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto .9rem;
  background: rgba(11, 68, 54, .08); color: var(--green); display: grid; place-items: center; font-size: 1.5rem;
}
.trust-stat .num { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; color: var(--gold); }
.trust-stat .lbl { color: var(--green); font-weight: 600; margin: .2rem 0 0; }

/* ---- Secondary (outline) button — pairs with .btn-gold in dual-CTA rows ---- */
.btn-outline {
  background: transparent; color: var(--green); font-weight: 700; border: 1px solid var(--green);
  border-radius: 8px; padding: .55rem 1.4rem; display: inline-flex; align-items: center; gap: .5rem;
  transition: all .2s;
}
.btn-outline:hover { background: var(--green); color: #fff; }
.cta-body .cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* =========================================================
   Product Details page (product.html)
   ========================================================= */

/* ---- Slim breadcrumb bar (no hero — the product header below carries
   the page's "title" role) ---- */
.crumb-bar { background: var(--green-dark); padding: .9rem 0; }
.crumb-bar .crumb { color: #b8c4bf; font-size: .85rem; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.crumb-bar .crumb a { color: #b8c4bf; }
.crumb-bar .crumb a:hover { color: var(--gold-2); }
.crumb-bar .crumb .sep { color: rgba(255, 255, 255, .35); }
.crumb-bar .crumb .cur { color: var(--gold-2); }

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

/* ---- Gallery ---- */
.pd-gallery-main {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--gray); aspect-ratio: 1 / 1; display: grid; place-items: center; cursor: zoom-in;
}
.pd-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-gallery-thumbs { display: flex; gap: .6rem; margin-top: .8rem; }
.pd-gallery-thumbs button {
  flex: 0 0 72px; width: 72px; height: 72px; border-radius: 10px; border: 2px solid var(--line);
  background: var(--gray); padding: 0; overflow: hidden; cursor: pointer; transition: border-color .2s;
}
.pd-gallery-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.pd-gallery-thumbs button.active { border-color: var(--gold); }
.pd-zoom-hint { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted); margin-top: .6rem; justify-content: center; }

/* ---- Info panel ---- */
.pd-info-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.pd-category-badge, .sfda-badge, .bestseller-badge {
  font-weight: 700; font-size: .78rem; padding: .3rem .75rem; border-radius: 6px; display: inline-flex; align-items: center; gap: .35rem;
}
.pd-category-badge { background: rgba(11, 68, 54, .08); color: var(--green); }
.sfda-badge { background: var(--green); color: #fff; }
.sfda-badge i { color: var(--gold-2); }
.bestseller-badge { background: rgba(201, 161, 60, .12); color: var(--gold); }

.pd-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--green); margin-bottom: 1rem; }
.pd-meta-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-direction: column; gap: .55rem; }
.pd-meta-list li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: #4a4a4a; }
.pd-meta-list li i { color: var(--gold); width: 18px; text-align: center; }
.pd-meta-list li strong { color: var(--green); font-weight: 700; }
.pd-manufacturer-link { color: inherit; font-weight: 600; border-bottom: 1px dashed var(--muted); transition: color .2s, border-color .2s; }
.pd-manufacturer-link:hover { color: var(--green); border-color: var(--green); }

.pd-cta .btn-gold { font-size: 1rem; padding: .75rem 1.8rem; }
.pd-views { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .8rem; margin-top: 1.1rem; }
.pd-views i { color: var(--muted); }

.pd-not-found { text-align: center; padding: 3rem 0; }
.pd-not-found i { font-size: 2.4rem; color: var(--muted); margin-bottom: 1rem; display: block; }
.pd-not-found p { color: var(--muted); margin-bottom: 1.2rem; }

/* ---- Sectioned content cards (Description / Specs / Applications / Features) ---- */
.pd-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.75rem; height: 100%;
}
.pd-card h2 {
  font-weight: 800; color: var(--green); font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  margin-bottom: 1.2rem; display: flex; align-items: center; gap: .6rem;
}
.pd-card h2 i { color: var(--gold); }
.pd-desc-text { color: #4a4a4a; line-height: 1.9; font-size: .98rem; margin: 0; }

/* ---- Technical specifications table ---- */
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th, .spec-table td { padding: .75rem .6rem; text-align: start; }
.spec-table th { width: 38%; color: var(--green); font-weight: 700; background: var(--gray); }
.spec-table td { color: #4a4a4a; }
@media (max-width: 575.98px) {
  .spec-table th { width: 44%; }
  .spec-table th, .spec-table td { padding: .6rem .4rem; font-size: .86rem; }
}

/* ---- Applications / uses checklist ---- */
.uses-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 1.2rem; }
.uses-list li { display: flex; align-items: flex-start; gap: .55rem; font-size: .92rem; color: #4a4a4a; }
.uses-list li i { color: var(--gold); font-size: 1.05rem; margin-top: .2rem; flex: 0 0 auto; }
@media (max-width: 575.98px) { .uses-list { grid-template-columns: 1fr; } }

/* ---- Key features grid ---- */
.pd-feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.2rem; text-align: center; height: 100%; transition: transform .25s, box-shadow .25s;
}
.pd-feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pd-feature-icon {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto .8rem;
  background: rgba(11, 68, 54, .08); color: var(--green); display: grid; place-items: center; font-size: 1.3rem;
}
.pd-feature-card h3 { font-size: 1rem; font-weight: 800; color: var(--green); margin-bottom: .4rem; }
.pd-feature-card p { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---- Similar products + comparison ---- */
.similar-products-section { background: var(--gray); }
.compare-toggle {
  display: flex; align-items: center; gap: .4rem; margin-top: .7rem; padding-top: .7rem;
  border-top: 1px solid var(--line); font-size: .78rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.compare-toggle input { width: 15px; height: 15px; accent-color: var(--green); cursor: pointer; }
.compare-toggle:has(input:checked) { color: var(--green); }

.compare-section { background: #fff; }
.compare-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
}
.compare-hint { font-size: .85rem; color: var(--muted); margin: 0; }
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 1.4rem; }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; }
.compare-table th, .compare-table td { padding: .8rem .7rem; border-bottom: 1px solid var(--line); text-align: center; vertical-align: top; }
.compare-table thead th { background: var(--gray); color: var(--green); font-weight: 800; }
.compare-table th.spec-label-col, .compare-table td.spec-label-col {
  text-align: start; color: var(--green); font-weight: 700; background: var(--gray); white-space: nowrap;
}
.compare-table td.current-col, .compare-table th.current-col { background: rgba(11, 68, 54, .05); }
.compare-remove-btn { border: none; background: transparent; color: var(--muted); font-size: .8rem; margin-top: .4rem; transition: color .2s; }
.compare-remove-btn:hover { color: #dc3545; }
.compare-empty-note { text-align: center; color: var(--muted); padding: 1.5rem 0; font-size: .9rem; margin: 0; }

/* =========================================================
   Contact Us page — Our Branches section
   ========================================================= */
.hours-card h2 { margin-bottom: .35rem; }
.hours-card-subtitle {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem;
  font-weight: 700; color: var(--gold); margin-bottom: 1.3rem;
}
.branches-section { background: #fff; }
.branches-hint { text-align: center; color: var(--muted); font-size: .88rem; margin: -.8rem 0 2rem; }
.branch-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; height: 100%; transition: transform .25s, box-shadow .25s;
}
.branch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.branch-card-header {
  display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.branch-icon {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(11, 68, 54, .08); color: var(--green);
  display: grid; place-items: center; font-size: 1.1rem; flex: 0 0 auto;
}
.branch-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--green); margin: 0; }
.branch-city { font-size: .78rem; color: var(--gold); font-weight: 700; display: block; margin-top: .15rem; }
.branch-details { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }
.branch-details li { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: #4a4a4a; }
.branch-details li i { color: var(--gold); margin-top: .15rem; flex: 0 0 auto; }
.branch-details li a { color: #4a4a4a; transition: color .2s; }
.branch-details li a:hover { color: var(--green); }
.branch-hours-badge {
  display: inline-flex; align-items: flex-start; gap: .35rem; background: rgba(201, 161, 60, .1); color: var(--gold);
  font-size: .78rem; font-weight: 700; padding: .3rem .6rem; border-radius: 6px; line-height: 1.6;
}

/* ================= LTR (English) overrides =================
   The rules above assume RTL throughout via logical properties (inset-inline-*,
   padding-inline-*, margin-inline-*, text-align: start), which flip automatically
   for LTR. Only the hardcoded `direction: rtl` declarations and the footer's
   directional chevron glyph need an explicit override for dir="ltr" pages. */
html[dir="ltr"], html[dir="ltr"] body { direction: ltr; --hero-gradient: linear-gradient(270deg, rgba(4, 33, 28, .15), rgba(4, 33, 28, .75)); --hero-sub-gradient: linear-gradient(270deg, rgba(4, 33, 28, .25), rgba(4, 33, 28, .85)); }
html[dir="ltr"] .hero-inner { direction: ltr; }
html[dir="ltr"] .events-track { direction: ltr; }
/* bi-chevron-left points "backward" in RTL reading order; mirror it so it still
   points toward the start of the line in LTR instead of visually pointing away. */
html[dir="ltr"] .footer .links a::before { display: inline-block; transform: scaleX(-1); }

/* Align subpages header text to the right on LTR to prevent overlapping left-aligned background images */
html[dir="ltr"] .about-hero h1,
html[dir="ltr"] .about-hero p.lead,
html[dir="ltr"] .about-hero .crumb {
  margin-left: auto;
  margin-right: 0;
  max-width: 640px;
  width: 100%;
}
