:root {
  --ink: #142318;
  --muted: #5a6b5e;
  --paper: #f7faf6;
  --line: #d5e2d8;
  --brand: #1f6b3a;
  --brand-dark: #15522b;
  --brand-soft: #e8f3eb;
  --accent: #c4a35a;
  --accent-dark: #9a7d3d;
  --shadow: 0 20px 48px rgba(20, 35, 24, 0.1);
  --radius: 16px;
  --font-sans: "Manrope", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }

body.frontend-body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(31, 107, 58, 0.08), transparent 42%),
    radial-gradient(ellipse at 90% 8%, rgba(196, 163, 90, 0.12), transparent 36%),
    linear-gradient(180deg, #f9fcf8 0%, #f3f7f2 50%, #eef4ef 100%);
  font-family: var(--font-sans);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Top bar ===== */
.top-bar {
  background: #0f1f14;
  color: rgba(255,255,255,.88);
  font-size: .8rem;
  padding: .45rem 0;
}
.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem .75rem;
}
.top-bar-left,
.top-bar-right,
.top-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem;
}
.top-bar a {
  color: rgba(255,255,255,.88);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: color .2s ease;
}
.top-bar a:hover { color: #fff; }
.top-toll { color: var(--accent) !important; font-weight: 600; }
.after-sales-badge {
  background: rgba(196, 163, 90, .16);
  border: 1px solid rgba(196, 163, 90, .35);
  color: #f0e2b8;
  padding: .18rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.top-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  justify-content: center;
  background: rgba(255,255,255,.08);
}
.top-social a:hover { background: var(--brand); color: #fff; }

/* ===== Header + Mega Menu ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(20, 35, 24, 0.04);
}
.header-main { position: relative; }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 88px;
  padding: .6rem 0;
}
.navbar-brand.logo-slot {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: clamp(160px, 18vw, 240px);
  max-width: 240px;
  min-height: 64px;
  z-index: 2;
  margin-right: .5rem;
}
.logo-frame {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 64px;
  padding: .35rem .25rem;
}
.logo-frame--text {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.05;
  gap: .2rem;
}
.site-logo {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.site-logo--header {
  height: 58px;
  max-height: 58px;
  max-width: 100%;
}
/* Uploads are auto-trimmed to transparent PNGs, but blend any residual white
   box away against the white header. Not applied in the footer, which is dark. */
.navbar-brand .site-logo { mix-blend-mode: multiply; }
.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 650;
  color: var(--brand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.brand-sub {
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
}

/* Bootstrap sets .navbar-brand { white-space: nowrap }, which would stop the
   company name from wrapping — reset it here. */
.navbar-brand.logo-slot--named {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .45rem;
  width: auto;
  max-width: 330px;
  white-space: normal;
}
/* Let the frame drop its bottom padding so the name lines up with the logo. */
.navbar-brand.logo-slot--named .logo-frame {
  padding-bottom: 0;
}
.company-name {
  position: relative;
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
  padding-top: .45rem;
  white-space: normal;
  font-family: var(--font-display);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .005em;
  color: var(--brand-dark);
  overflow-wrap: anywhere;
}
/* Short gold rule that anchors the name to the logo above it. */
.company-name::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(196, 163, 90, 0));
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 2;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: flex-end;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--ink) !important;
  font-weight: 650;
  font-size: .9rem;
  padding: .9rem .72rem !important;
  white-space: nowrap;
  position: relative;
  transition: color .2s ease;
}
.nav-link i {
  font-size: .68rem;
  opacity: .6;
  transition: transform .2s ease;
}
.nav-link:hover,
.has-mega:hover > .nav-link,
.has-dropdown:hover > .nav-link,
.has-mega.is-open > .nav-link,
.has-dropdown.is-open > .nav-link {
  color: var(--brand) !important;
}
.has-mega:hover > .nav-link i,
.has-dropdown:hover > .nav-link i,
.has-mega.is-open > .nav-link i,
.has-dropdown.is-open > .nav-link i {
  transform: rotate(180deg);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: .72rem;
  right: .72rem;
  bottom: .42rem;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav-link:hover::after,
.has-mega:hover > .nav-link::after,
.has-dropdown:hover > .nav-link::after,
.has-mega.is-open > .nav-link::after,
.has-dropdown.is-open > .nav-link::after {
  transform: scaleX(1);
}
.header-cta {
  padding: .55rem 1.15rem !important;
  font-size: .85rem;
  flex-shrink: 0;
}

/* Simple dropdown */
.simple-dropdown {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: .55rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(20, 35, 24, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .2s ease;
  z-index: 1050;
  pointer-events: none;
}
.has-dropdown:hover > .simple-dropdown,
.has-dropdown.is-open > .simple-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.simple-dropdown a {
  display: block;
  padding: .55rem .75rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 550;
  font-size: .9rem;
}
.simple-dropdown a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

/* Full-width mega panel */
.has-mega { position: static; }
.mega-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 28px 50px rgba(20, 35, 24, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  z-index: 1045;
  padding: 1.6rem 0 1.75rem;
  pointer-events: none;
}
.has-mega:hover > .mega-panel,
.has-mega.is-open > .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.mega-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) repeat(3, minmax(140px, 1fr)) minmax(180px, 1.15fr);
  gap: 1rem;
  align-items: stretch;
}
.mega-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.05rem 1.15rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.mega-block:hover {
  border-color: rgba(31, 107, 58, .35);
  box-shadow: 0 10px 24px rgba(20, 35, 24, .06);
  transform: translateY(-2px);
}
.mega-block--wide {
  background: #fff;
  border-color: rgba(31, 107, 58, .2);
}
.mega-heading {
  display: block;
  font-size: .95rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: .7rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--brand-soft);
}
.mega-heading:hover { color: var(--brand-dark); }
.mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega-list--cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: .85rem;
}
.mega-list a {
  display: flex;
  align-items: center;
  gap: .1rem;
  padding: .4rem 0;
  color: #4d5f52;
  font-size: .875rem;
  font-weight: 550;
  transition: color .15s ease, transform .15s ease;
}
.mega-list a i {
  font-size: 1.05rem;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: .15s ease;
  color: var(--brand);
}
.mega-list a:hover {
  color: var(--brand);
  transform: translateX(2px);
}
.mega-list a:hover i {
  opacity: 1;
  width: 1.05rem;
}
.mega-hint {
  color: var(--muted);
  font-size: .82rem;
  margin: 0 0 .8rem;
  line-height: 1.45;
}
.mega-view-all {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--brand);
  font-weight: 700;
  font-size: .85rem;
}
.mega-view-all:hover { gap: .55rem; }
.mega-promo {
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(15,31,20,.92), rgba(31,107,58,.78)),
    url('https://images.unsplash.com/photo-1580480055273-228ff5388ef8?auto=format&fit=crop&w=800&q=70') center/cover;
  color: #fff;
}
.mega-promo-inner {
  padding: 1.25rem 1.15rem;
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
}
.mega-promo-label {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.mega-promo strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}
.mega-promo p {
  margin: 0 0 .65rem;
  font-size: .85rem;
  opacity: .88;
}
.mega-promo .btn-brand {
  align-self: flex-start;
  background: var(--accent);
  border-color: var(--accent);
  color: #142318;
}
.mega-promo .btn-brand:hover {
  background: #d4b56a;
  border-color: #d4b56a;
  color: #142318;
}

.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: .65rem 1.35rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-brand {
  border: 1.5px solid var(--brand);
  color: var(--brand);
  border-radius: 999px;
  padding: .65rem 1.35rem;
  font-weight: 700;
}
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-outline-light { border-radius: 999px; }

/* ===== Page sections ===== */
.hero-slider { position: relative; }
.hero-slide {
  min-height: min(82vh, 700px);
  background:
    linear-gradient(105deg, rgba(15,31,20,.82) 0%, rgba(15,31,20,.45) 48%, rgba(15,31,20,.2) 100%),
    var(--hero-image) center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 640px; color: #fff; padding: 4rem 0; }
.hero-kicker {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: .85rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero-text { font-size: 1.05rem; opacity: .92; margin-bottom: 1.5rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; }

.section { padding: 4.5rem 0; }
.section-kicker {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .75rem;
  margin-bottom: .5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 600;
  margin-bottom: .65rem;
  color: var(--ink);
}
.section-subtitle { color: var(--muted); max-width: 40rem; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-copy { color: var(--muted); }

/* Certificates */
.certificates-section { background: var(--paper); }
.certificate-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.1rem 1.1rem 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(20, 35, 24, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.certificate-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 107, 58, .35);
  box-shadow: 0 18px 40px rgba(20, 35, 24, .12);
}
/* Frame that holds the uploaded certificate scan. */
.certificate-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 210px;
  padding: .65rem;
  margin-bottom: 1rem;
  background: var(--brand-soft);
  border-radius: 12px;
  overflow: hidden;
}
.certificate-badge img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(20, 35, 24, .14);
  transition: transform .3s ease;
}
a.certificate-badge:hover img,
.certificate-card:hover .certificate-badge img { transform: scale(1.04); }
/* Placeholder when no image has been uploaded yet. */
.certificate-badge > i {
  font-size: 2.75rem;
  color: rgba(31, 107, 58, .45);
}
.certificate-card h3 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: .35rem;
}
.certificate-issuer {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
}
.certificate-year {
  display: inline-block;
  margin-top: .5rem;
  padding: .1rem .55rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent-dark);
  background: rgba(196, 163, 90, .16);
  border-radius: 999px;
}
.certificate-card p {
  margin: .75rem 0 0;
  font-size: .88rem;
  color: var(--muted);
}

/* Clickable certificate frame */
button.certificate-badge {
  width: 100%;
  border: 1px dashed rgba(31, 107, 58, .3);
  cursor: zoom-in;
  font: inherit;
  appearance: none;
  transition: border-color .25s ease;
}
button.certificate-badge:hover { border-color: rgba(31, 107, 58, .6); }
button.certificate-badge:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Full-screen certificate viewer */
.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 5.5rem 4.5rem;
  background: rgba(10, 20, 14, .93);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .22s ease;
}
.cert-lightbox[hidden] { display: none; }
.cert-lightbox.is-open { opacity: 1; }
.cert-lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}
.cert-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}
.cert-lightbox__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  text-align: center;
  color: #fff;
}
.cert-lightbox__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.cert-lightbox__meta {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.cert-lightbox__meta:empty { display: none; }
.cert-lightbox__close,
.cert-lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.cert-lightbox__close:hover,
.cert-lightbox__nav:hover {
  background: rgba(255, 255, 255, .26);
}
.cert-lightbox__close:focus-visible,
.cert-lightbox__nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.cert-lightbox__close { top: 1.1rem; right: 1.1rem; }
.cert-lightbox__nav--prev { left: 1.1rem; top: 50%; transform: translateY(-50%); }
.cert-lightbox__nav--next { right: 1.1rem; top: 50%; transform: translateY(-50%); }
.cert-lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.06); }
.cert-lightbox__nav--next:hover { transform: translateY(-50%) scale(1.06); }
.cert-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  padding: .25rem .8rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
}
.cert-lightbox__counter:empty { display: none; }
body.cert-lightbox-open { overflow: hidden; }

.category-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .35s ease, box-shadow .35s ease;
  height: 100%;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.category-card-media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--brand-soft); }
.category-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card:hover .category-card-media img { transform: scale(1.06); }
.category-card-body { padding: 1rem 1.05rem 1.15rem; }
.category-card-body h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .35rem; }
.category-card-body span { color: var(--brand); font-size: .82rem; font-weight: 600; }

.product-card, .project-card, .service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform .35s ease, box-shadow .35s ease;
}
.product-card:hover, .project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card-media, .project-card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--brand-soft); }
.product-card-media img, .project-card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body, .project-card-body, .service-card .p-3 { padding: 1.1rem 1.15rem 1.25rem; }
.product-card h3, .project-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.product-meta { color: var(--brand); font-size: .8rem; font-weight: 600; margin-bottom: .35rem; }

.about-media { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.about-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  height: 100%;
  transition: border-color .25s ease, transform .25s ease;
}
.feature-card:hover { border-color: var(--brand); transform: translateY(-4px); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.25rem;
  margin-bottom: .9rem;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.feature-card p { color: var(--muted); font-size: .9rem; margin: 0; }

.stats-section {
  background:
    linear-gradient(120deg, rgba(15,31,20,.92), rgba(31,107,58,.88)),
    url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1600&q=60') center/cover;
  color: #fff;
}
.stat-item { text-align: center; padding: 1rem; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-label { font-weight: 600; opacity: .9; letter-spacing: .04em; }

.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  height: 100%;
}
.testimonial-card .stars { color: var(--accent); margin-bottom: .6rem; }
.testimonial-card p { color: var(--muted); font-size: .95rem; }
.testimonial-card .client { font-weight: 700; margin-top: 1rem; }

.showcase-section .showcase-media {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.showcase-section .showcase-media img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }

.cta-section {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  color: #fff;
  border-radius: 28px;
  padding: 3rem 2rem;
  text-align: center;
}
.cta-wrap { padding: 2rem 0 4.5rem; }

.page-hero {
  background:
    linear-gradient(100deg, rgba(15,31,20,.85), rgba(31,107,58,.55)),
    var(--hero-image, url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1600&q=60')) center/cover;
  color: #fff;
  padding: 4rem 0 3rem;
}
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); }

/* Breadcrumbs rendered outside a hero need their own bar, otherwise the
   white text meant for dark heroes sits on a white background. */
.page-breadcrumb {
  background: var(--brand-soft);
  border-bottom: 1px solid var(--line);
  padding: .7rem 0;
}
.page-breadcrumb .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(20, 35, 24, .35);
  margin-bottom: 0;
  font-size: .86rem;
}
.page-breadcrumb .breadcrumb-item,
.page-breadcrumb .breadcrumb-item a {
  color: var(--ink);
}
.page-breadcrumb .breadcrumb-item a {
  text-decoration: none;
  opacity: .75;
}
.page-breadcrumb .breadcrumb-item a:hover {
  opacity: 1;
  text-decoration: underline;
}
.page-breadcrumb .breadcrumb-item.active {
  color: var(--brand-dark);
  font-weight: 600;
  opacity: 1;
}

/* Inside a dark hero, keep the light treatment. */
.page-hero .breadcrumb,
.breadcrumb--on-dark {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5);
}
.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a,
.breadcrumb--on-dark .breadcrumb-item,
.breadcrumb--on-dark .breadcrumb-item a { color: rgba(255, 255, 255, .8); }
.page-hero .breadcrumb-item.active,
.breadcrumb--on-dark .breadcrumb-item.active { color: #fff; }

.site-footer {
  background: #0f1f14;
  color: rgba(255,255,255,.78);
  padding: 4rem 0 0;
  margin-top: 2rem;
}
.footer-logo.logo-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  width: 100%;
  max-width: 280px;
  margin-bottom: 1.15rem;
}
.logo-frame--footer {
  width: 100%;
  min-height: 78px;
  padding: .7rem .9rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.logo-frame--footer.logo-frame--text {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
}
.site-logo--footer {
  height: 58px;
  max-height: 58px;
  max-width: 100%;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.15;
}
.footer-brand-sub {
  display: block;
  margin-top: .2rem;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

/* Optional company name shown under the logo in the footer. */
.footer-logo .company-name--footer {
  padding-top: .55rem;
  color: rgba(255, 255, 255, .94);
  font-size: 1.05rem;
}
.footer-logo .company-name--footer::before {
  width: 34px;
  background: linear-gradient(90deg, var(--accent), rgba(196, 163, 90, 0));
}
.footer-text { color: rgba(255,255,255,.65); font-size: .92rem; }
.footer-heading {
  color: #fff;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 1rem;
}
.footer-links a, .footer-contact li {
  display: block;
  color: rgba(255,255,255,.68);
  padding: .28rem 0;
  font-size: .92rem;
}
.footer-links a:hover { color: var(--accent); }
.footer-contact i { color: var(--accent); margin-right: .4rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: background .2s ease;
}
.footer-social a:hover { background: var(--brand); }
.footer-bottom {
  margin-top: 2.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

.float-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  transition: transform .2s ease;
}
.float-btn:hover { transform: scale(1.06); color: #fff; }
.float-whatsapp { background: #25d366; }
.float-call { background: var(--brand); }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }

.category-banner-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.category-banner-media img { width: 100%; max-height: 280px; object-fit: cover; }

.filter-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: 100px;
}
.filter-panel h3 {
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--brand);
}
.filter-panel a {
  display: block;
  padding: .45rem 0;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.filter-panel a:hover, .filter-panel a.active { color: var(--brand); font-weight: 700; }

.product-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }

@media (max-width: 1199.98px) {
  .mega-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: .9rem;
  }
  .mega-promo { grid-column: 1 / -1; }
  .mega-promo-inner { min-height: 120px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
  .mega-promo p { margin: 0; flex: 1 1 180px; }
  .nav-link { padding: .9rem .5rem !important; font-size: .84rem; }
}

@media (max-width: 991.98px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(20, 35, 24, .1);
    flex-direction: column;
    align-items: stretch;
    padding: .75rem 1rem 1.1rem;
    gap: .75rem;
    display: none;
    max-height: calc(100vh - 120px);
    overflow: auto;
  }
  .main-nav.is-open { display: flex; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: .9rem 0 !important;
    border-bottom: 1px solid var(--line);
  }
  .nav-link::after { display: none; }
  .header-cta { width: 100%; text-align: center; }

  .simple-dropdown,
  .mega-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    display: none;
    padding: 0 0 .75rem;
    margin: 0;
    pointer-events: auto;
  }
  .has-dropdown.is-open > .simple-dropdown,
  .has-mega.is-open > .mega-panel {
    display: block;
  }
  .simple-dropdown {
    background: var(--paper);
    border-radius: 10px;
    padding: .35rem;
  }
  .mega-panel { background: transparent; }
  .mega-grid {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .mega-list--cols { grid-template-columns: 1fr; }
  .mega-promo-inner { flex-direction: column; align-items: flex-start; min-height: 150px; }
  .hero-slide { min-height: 70vh; }
}

@media (max-width: 575.98px) {
  .top-bar-left span,
  .after-sales-badge { display: none; }
  .top-bar { font-size: .75rem; }
  .navbar-brand.logo-slot {
    width: min(170px, 58vw);
    max-width: 170px;
    min-height: 52px;
  }
  .navbar-brand.logo-slot--named {
    max-width: 62vw;
  }
  .company-name { font-size: .78rem; padding-top: .35rem; }
  .company-name--footer { font-size: .88rem; padding-top: .45rem; }
  .logo-frame { min-height: 52px; }
  .site-logo--header { height: 48px; max-height: 48px; }
  .header-row { min-height: 72px; }
  .footer-logo.logo-slot { max-width: 220px; }
  .logo-frame--footer { min-height: 68px; }
  .site-logo--footer { height: 48px; max-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mega-panel, .simple-dropdown { transition: none; }
}
