/* ==========================================================================
   Simplex — Site chrome and page structure: header, sections, page header, footer
   and the cookie consent banner.
   ========================================================================== */

/* ---------- Header / navbar ---------- */
/* placeholder that holds the header's space until site.js swaps in /partials/header.html */
.partial-header {
  height: calc(var(--sx-header-h) + 1px);
  background: #fff;
  border-bottom: 1px solid var(--sx-border);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--sx-border);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.08);
}
.site-nav {
  min-height: var(--sx-header-h);
}
.site-nav .nav-link {
  position: relative;
  font-weight: 600;
  color: var(--sx-ink);
  padding: 0.5rem 0.9rem !important;
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible,
.site-nav .nav-link.active,
.site-nav .nav-link.show {
  color: var(--sx-red-ink);
}
@media (min-width: 992px) {
  .site-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: -0.15rem;
    height: 2px;
    background: var(--sx-red);
    border: 0;
    margin: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }
  .site-nav .nav-link.active::after,
  .site-nav .nav-link:hover::after {
    transform: scaleX(1);
  }
}
@media (max-width: 991.98px) {
  /* Bootstrap's caret is replaced by the chevron icon */
  .site-nav .dropdown-toggle::after {
    display: none;
  }
}
.site-nav .dropdown-toggle .bi-chevron-down {
  font-size: 0.7em;
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
}
.site-nav .dropdown-toggle.show .bi-chevron-down {
  transform: rotate(180deg);
}
.site-nav .dropdown-menu {
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius);
  box-shadow: var(--sx-shadow);
  padding: 0.5rem;
  min-width: 16rem;
  margin-top: 0.5rem !important;
}
.site-nav .dropdown-item {
  border-radius: var(--sx-radius-sm);
  padding: 0.55rem 0.85rem;
  font-weight: 500;
}
.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus {
  background: var(--sx-surface);
  color: var(--sx-red-ink);
}
.site-nav .dropdown-item.active,
.site-nav .dropdown-item:active {
  background: var(--sx-surface);
  color: var(--sx-red-ink);
  font-weight: 600;
}
.nav-phone {
  font-weight: 600;
  color: var(--sx-ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-phone:hover {
  color: var(--sx-red-ink);
}
.nav-phone .bi {
  color: var(--sx-red);
}
.navbar-toggler {
  border: 0;
  padding: 0.5rem;
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem var(--bs-focus-ring-color);
}
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    padding: 0.5rem 0 1.25rem;
  }
  .site-nav .nav-link {
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid var(--sx-border);
  }
  .site-nav .dropdown-menu {
    border: 0;
    box-shadow: none;
    padding: 0 0 0.5rem 0.75rem;
    margin: 0 !important;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--sx-section-y);
}
.section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}
.section-surface {
  background: var(--sx-surface);
}
.section-dark {
  background: var(--sx-dark);
  color: var(--sx-dark-text);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fff;
}
.section-dark .lead {
  color: var(--sx-dark-text);
}
/* Eyebrow label, e.g. "01 — EMAS · ISO 14001" */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sx-red-ink);
  margin-bottom: 0.9rem;
}
.section-dark .eyebrow {
  color: var(--sx-red);
}
/* Section header: eyebrow, title, intro stacked */
.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section-head h2 {
  margin: 0 0 1rem;
}
.section-head .lead {
  margin: 0;
  max-width: 46rem;
}
/* Dash bullet list (red em-dash markers) */
.dash-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dash-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.7rem;
}
.dash-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.9rem;
  height: 2px;
  background: var(--sx-red);
}

/* ---------- Inner page header ---------- */
.page-header {
  background: var(--sx-dark);
  background-image: radial-gradient(circle at 85% 0%, rgba(237, 28, 36, 0.18), transparent 45%);
  color: var(--sx-dark-text);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.page-header h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  max-width: 18ch;
  margin-bottom: 1.25rem;
}
.page-header .lead {
  color: var(--sx-dark-text);
  max-width: 42rem;
  margin: 0;
}
.page-header .breadcrumb {
  --bs-breadcrumb-divider-color: var(--sx-dark-muted);
  font-size: 0.85rem;
  margin-bottom: 1.75rem;
}
.page-header .breadcrumb-item,
.page-header .breadcrumb-item.active {
  color: var(--sx-dark-muted);
}
.page-header .breadcrumb a {
  color: var(--sx-dark-text);
  text-decoration: none;
}
.page-header .breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sx-dark);
  color: var(--sx-dark-muted);
  font-size: 0.95rem;
}
.site-footer .footer-main {
  padding-block: 4.5rem 3rem;
}
.site-footer h2 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
}
.site-footer a {
  color: var(--sx-dark-text);
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 0.6rem;
}
.footer-contact li {
  display: flex;
  gap: 0.6rem;
}
.site-footer .footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 1.25rem;
  margin-left: -0.6rem;
}
.site-footer .footer-social li {
  margin: 0;
}
.site-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible {
  color: var(--sx-red);
  text-decoration: none;
}
.footer-contact .bi {
  color: var(--sx-red);
}
.footer-bottom {
  border-top: 1px solid var(--sx-dark-line);
  padding-block: 1.5rem;
  font-size: 0.85rem;
}
.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer-bottom li {
  margin: 0;
}
.footer-bottom button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--sx-dark-text);
  font: inherit;
  cursor: pointer;
}
.footer-bottom button:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Cookie consent banner ---------- */
.consent {
  position: fixed;
  z-index: 1080;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 34rem;
  background: #fff;
  color: var(--sx-ink);
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius);
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.18);
  padding: 1.5rem;
}
.consent[hidden] {
  display: none;
}
.consent h2 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.consent p {
  font-size: 0.9rem;
  color: var(--sx-muted);
  margin-bottom: 1.1rem;
}
.consent .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}
