/* ── REACH Monitor — main stylesheet ─────────────────────────────────────── */

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

:root {
  --rm-red:        #b70b0b;
  --rm-red-rgb:    183, 11, 11;
  --rm-red-hover:  #f14e4e;
  --rm-red-dark:   #c62828;
  --gray1:         #1a1a2e;

  --text:          #1a1a2e;
  --text-muted:    #666666;
  --surface:       rgba(255, 255, 255, 0.95);
  --surface-hover: rgba(255, 255, 255, 1);
  --border:        rgba(0, 0, 0, 0.1);

  --font: system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
  --gap: 1.5rem;
  --radius: 4px;
  --transition: 0.3s ease;

  /* Enhanced visual properties */
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 20px rgba(183, 11, 11, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-bg-hover: rgba(255, 255, 255, 1);

  /* Global background system */
  --bg-base: #f4f6fa;
  --bg-accent-warm: rgba(183, 11, 11, 0.07);
  --bg-accent-cool: rgba(26, 26, 46, 0.07);
  --bg-pattern-line: rgba(255, 255, 255, 0.34);
  --bg-pattern-gap: rgba(255, 255, 255, 0);
  --section-tint-warm: rgba(183, 11, 11, 0.035);
  --section-tint-cool: rgba(26, 26, 46, 0.03);
  --surface-card: rgba(255, 255, 255, 0.9);
  --surface-card-strong: rgba(255, 255, 255, 0.96);
}

/* ── Base ── */

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background-color: #ffffff;
  background-image:
    url("../img/molecules-fixed.16ae580c093b.svg"),
    url("../img/molecules-scroll.f5891a384d1a.svg");
  background-attachment: fixed, scroll;
  background-size: 2400px 1800px, 2400px 1800px;
  background-repeat: repeat, repeat;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--gray1); text-decoration: none; }
a:hover { color: var(--rm-red-hover); }

h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

p { color: var(--gray1); margin-bottom: 1rem; }

ul, ol { margin-left: 1.5rem; margin-bottom: 1rem; color: var(--gray1); }

table { border-collapse: collapse; width: 100%; color: var(--gray1); margin-bottom: 1rem; }
th, td { padding: .5rem .75rem; border: 1px solid var(--border); text-align: left; }

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gap);
}

/* ── Header & Nav ── */

.site-header {
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  border-bottom: 1px solid transparent;
  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    -webkit-backdrop-filter 0.4s ease,
    border-color 0.4s ease;
}
.site-header.scrolled {
  background: rgba(240,240,242,0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26, 26, 46, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: .5rem var(--gap);
  flex-wrap: wrap;
}

.nav__logo img {
  display: block;
  height: 75px;
  width: auto;
  border-radius: 6px;
  transition: opacity var(--transition);
}
.nav__logo:hover img { opacity: 0.85; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .3rem;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray1);
  border-radius: 2px;
  transition: var(--transition);
}

/* Link list */
.nav__links {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav__links > li > a,
.nav__dropdown-toggle {
  display: block;
  padding: .45rem .8rem;
  color: var(--gray1);
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  font-family: var(--font);
}

.nav__links > li > a:hover,
.nav__dropdown-toggle:hover,
.nav__links > li > a.active {
  color: var(--rm-red-hover);
  border-bottom-color: var(--rm-red-hover);
}

/* Dropdowns */
.nav__dropdown { position: relative; }

.nav__submenu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: rgba(165, 30, 30, 0.96);
  border: 1px solid rgba(183, 11, 11, 0.6);
  border-radius: var(--radius) var(--radius) var(--radius) var(--radius);
  min-width: 210px;
  list-style: none;
  padding: .4rem 0;
  z-index: 300;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Bridge the gap so moving the cursor from button to submenu doesn't lose hover */
.nav__submenu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav__dropdown:hover .nav__submenu,
.nav__dropdown:focus-within .nav__submenu { display: block; }

.nav__submenu a {
  display: block;
  padding: .45rem 1rem;
  color: #dcdcdc;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(166, 166, 166, 0.15);
  transition: background var(--transition), color var(--transition);
}
.nav__submenu li:last-child a { border-bottom: none; }
.nav__submenu a:hover { background: rgba(0,0,0,0.25); color: white; }

/* Mega menu (two-column What We Do) */
.nav__mega {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  flex-direction: row;
  background: rgba(165, 30, 30, 0.96);
  border: 1px solid rgba(183, 11, 11, 0.6);
  border-radius: var(--radius);
  z-index: 300;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  min-width: 520px;
}
.nav__mega::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.nav__dropdown:hover .nav__mega,
.nav__dropdown:focus-within .nav__mega { display: flex; }
.nav__mega-col { flex: 1; }
.nav__mega-col + .nav__mega-col { border-left: 1px solid rgba(255,255,255,0.15); }
.nav__mega-heading {
  margin: 0;
  padding: .5rem 1rem .4rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.nav__mega-col ul { list-style: none; margin: 0; padding: .3rem 0; }
.nav__mega-col a {
  display: block;
  padding: .45rem 1rem;
  color: #dcdcdc;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(166,166,166,0.15);
  transition: background var(--transition), color var(--transition);
}
.nav__mega-col li:last-child a { border-bottom: none; }
.nav__mega-col a:hover { background: rgba(0,0,0,0.25); color: white; }

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: .3rem;
  margin-left: auto;
}

.lang-switcher a {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(26,26,46,0.18);
  border-radius: var(--radius);
  padding: .2rem .55rem;
  color: var(--gray1);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  font-family: var(--font);
}
.lang-switcher a:hover { background: rgba(255,255,255,0.12); border-color: white; }
.lang-switcher a.active {
  background: var(--rm-red);
  border-color: var(--rm-red);
  color: white;
}

/* ── Main ── */

.main { min-height: 60vh; padding-top: 100px; padding-bottom: 2.5rem; }

/* ── Hero ── */

.hero {
  text-align: center;
  padding: 5rem var(--gap);
  position: relative;
}

.hero__inner { max-width: 720px; margin-inline: auto; }

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: white;
  margin-bottom: 1.2rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  padding: .7rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--rm-red) 0%, #d42020 100%);
  color: white;
}
.btn--primary:hover {
  background: linear-gradient(135deg, #d42020 0%, var(--rm-red-hover) 100%);
  color: white;
  box-shadow: 0 6px 24px rgba(183, 11, 11, 0.5), 0 0 60px rgba(183, 11, 11, 0.15);
  transform: translateY(-3px);
}

.btn--outline {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--rm-red);
  border: 2px solid var(--rm-red);
}
.btn--outline:hover {
  background: var(--rm-red);
  color: white;
  box-shadow: 0 4px 20px rgba(183, 11, 11, 0.4);
  transform: translateY(-2px);
}

/* ── Section headings ── */

.section-heading {
  color: var(--gray1);
  font-size: 2rem;
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 2rem;
}
.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--rm-red), transparent);
  border-radius: 2px;
}

/* ── Page content ── */

.page-content {
  padding-block: 2.5rem;
}

.page-content h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--gray1);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 12px;
}
.page-content h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--rm-red);
}

.page-content h2 {
  color: var(--gray1);
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: .75rem;
  padding-left: 16px;
  border-left: 3px solid var(--rm-red);
}

.page-content h3, .page-content h4 {
  color: var(--gray1);
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}

/* ── Service / card grid ── */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-block: 2rem;
}

.service-grid-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.service-grid-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--rm-red);
  transition: width var(--transition);
}
.service-grid-item:hover::after { width: 100%; }
.service-grid-item:hover {
  background: var(--surface-hover);
  box-shadow: 0 6px 28px rgba(183, 11, 11, 0.35);
  transform: translateY(-4px);
}

.featured-service {
  background: var(--rm-red);
  border-color: var(--rm-red-dark);
}

/* ── Section divider ── */

.section {
  border-left: 3px solid var(--rm-red);
  padding-left: 1.25rem;
  margin: 2.5rem 0;
}

/* ── Category label ── */

.category-label {
  color: #e10000;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
}

.highlight { color: var(--rm-red-hover); }

/* ── Forms ── */

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: .88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray1);
}

.form-group input,
.form-group textarea {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius);
  color: var(--gray1);
  padding: .65rem .9rem;
  font: inherit;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #999; }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rm-red-hover);
  box-shadow: 0 0 0 3px rgba(241, 78, 78, 0.2);
}

.contact-success {
  color: #81c784;
  font-weight: 600;
  padding: 1rem 0;
  font-size: 1.05rem;
}
.contact-error {
  color: var(--rm-red-hover);
  font-weight: 600;
  padding: 1rem 0;
}

/* HTMX loading indicator */
.htmx-indicator { display: none; opacity: .7; }
.htmx-request .htmx-indicator { display: inline; }

/* ── Footer ── */

.site-footer {
  --gray1: #e6e6e6;
  --text-muted: #aaaaaa;
  background: rgba(15, 5, 5, 0.9);
  margin-top: 3rem;
  position: relative;
  border-top: none;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 11, 11, 0.5), transparent);
}

.footer__grid {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 3rem var(--gap) 2rem;
  display: grid;
  grid-template-columns: 2fr 4fr 1fr;
  gap: 2.5rem;
}

.footer__brand p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.6;
}
.footer__brand img {
  height: 50px;
}

.footer__legal h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray1);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 10px;
}
.footer__legal h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--rm-red);
}

.footer__legal a {
  display: block;
  color: var(--text-muted);
  font-size: .88rem;
  padding: .35rem 0;
  transition: color var(--transition), padding-left var(--transition);
}
.footer__legal a:hover {
  color: var(--rm-red-hover);
  padding-left: 6px;
}

.footer__offices h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray1);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 10px;
}
.footer__offices h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--rm-red);
}
.footer__offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.footer__offices address {
  font-style: normal;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer__offices address strong {
  display: block;
  color: var(--gray1);
  font-size: .78rem;
  margin-bottom: .25rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.25rem var(--gap);
  text-align: center;
}
.footer__bottom p {
  max-width: var(--max-width);
  margin-inline: auto;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ── Print utilities (kept from original) ── */

.nodesk { display: none; }

@media print {
  .saltopagina { display: block !important; page-break-before: always !important; }
}

/* ── Responsive ── */

@media (max-width: 1100px) {
  /* Keep lang-switcher in the header row alongside the hamburger,
     not below the expanded menu */
  .nav__toggle    { display: flex; order: 2; }
  .lang-switcher  { order: 3; margin-left: 0; }
  .nav__links     { order: 4; }

  /* Hamburger lines: white over hero, dark once scrolled */
  .nav__toggle span { background: white; }
  .site-header.scrolled .nav__toggle span { background: var(--gray1); }

  .nav__links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background: rgba(248,248,250,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(26,26,46,0.1);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: .25rem 0;
    margin-top: 0;
  }
  .nav__links--open { display: flex; }

  .nav__links > li > a,
  .nav__dropdown-toggle {
    width: 100%;
    padding: .7rem 1.2rem;
    color: var(--gray1);
    border-bottom: 1px solid rgba(26,26,46,0.07);
  }
  .nav__links > li:last-child > a,
  .nav__links > li:last-child > .nav__dropdown-toggle { border-bottom: none; }

  .nav__submenu {
    position: static;
    border: none;
    border-radius: 0;
    background: rgba(26,26,46,0.04);
    box-shadow: none;
    padding-left: 1rem;
  }
  .nav__submenu a {
    color: var(--gray1);
    border-bottom-color: rgba(26,26,46,0.07);
  }
  .nav__submenu a:hover { background: rgba(26,26,46,0.06); color: var(--rm-red); }

  .nav__dropdown--open .nav__submenu,
  .nav__dropdown--open .nav__mega { display: block; }

  .nav__mega {
    position: static;
    flex-direction: column;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: rgba(26,26,46,0.04);
    min-width: 0;
  }
  .nav__mega-heading { color: rgba(26,26,46,0.45); border-bottom-color: rgba(26,26,46,0.08); }
  .nav__mega-col a { color: var(--gray1); border-bottom-color: rgba(26,26,46,0.07); }
  .nav__mega-col a:hover { background: rgba(26,26,46,0.06); color: var(--rm-red); }
  .nav__mega-col + .nav__mega-col { border-left: none; border-top: 1px solid rgba(26,26,46,0.08); }

  .nodesk { display: none; }
  .nomobile { display: none; }
}

@media (min-width: 1101px) {
  .nodesk { display: none; }
}

/* ── Shared page components ─────────────────────────────────────── */

/* Button aliases for WP-sourced page CSS (single-dash naming) */
.btn-primary  { background: var(--rm-red);  color: white !important; border: 2px solid var(--rm-red); }
.btn-primary:hover  { background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); color: var(--gray1) !important; }
.btn-outline  { background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); color: var(--gray1) !important; border: 2px solid var(--gray1); }
.btn-outline:hover  { background: rgba(var(--rm-red-rgb), 0.08); color: var(--rm-red) !important; }

/* Shared page hero */
.page-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  margin-top: -100px;
  padding-top: 100px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-content {
  max-width: 900px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.page-hero .page-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--gray1);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}
.page-hero .page-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--rm-red), transparent);
  border-radius: 2px;
}
.page-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  max-width: 800px;
  margin: 1.5rem auto 2rem;
  color: var(--gray1);
  opacity: 0.9;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Centered section heading variant */
.section-heading-c {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
  text-transform: uppercase;
  color: var(--gray1);
}
.section-heading-c::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--rm-red), transparent);
  border-radius: 2px;
}
.section-subheading {
  font-size: 1.15rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
}

/* Intro text */
.intro-text { font-size: 1.05rem; line-height: 1.8; color: var(--gray1); margin-bottom: 1.25rem; }
.intro-text p { margin-bottom: 1rem; }
.intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.page-section { padding: 80px 0; position: relative; }
.intro-section { padding: 80px 0; position: relative; }

/* Soft image mask for seamless blending */
.image-mask-soft {
  mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
}

/* Faded background images for continuous flow */
.faded-bg-container {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.faded-bg-image {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120%; height: 140%;
  min-width: 800px;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  mask-image: radial-gradient(circle at center, black 18%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at center, black 18%, transparent 62%);
}
.faded-bg-image.align-left { left: 20%; }
.faded-bg-image.align-right { left: 80%; }

/* Image placeholder (for pages awaiting real images) */
.img-placeholder {
  flex: 1 1 380px;
  min-height: 280px;
  border-radius: 8px;
  background: rgba(var(--rm-red-rgb), 0.1);
  border: 2px solid rgba(var(--rm-red-rgb), 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(var(--rm-red-rgb), 0.4);
}

/* Service cards */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  margin: 3rem 0;
}
.service-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: all 0.4s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rm-red), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:hover::after { opacity: 1; }
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(183,11,11,0.2);
  box-shadow: var(--shadow-card-hover);
  background: #ffffff;
}
.service-icon { font-size: 3rem; color: var(--rm-red); margin-bottom: 20px; text-align: center; }
.service-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 15px; color: var(--gray1); text-align: center; }
.service-description { flex: 1; font-size: 0.95rem; line-height: 1.6; color: var(--gray1); margin-bottom: 15px; }
.service-list { margin: 15px 0; padding-left: 20px; }
.service-list li { margin-bottom: 8px; color: var(--gray1); }
.service-cta { text-align: center; margin-top: auto; }
.service-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
  max-width: 900px;
  margin-inline: auto;
}

/* Tabs */
.tabs-container { margin: 3.5rem 0; }
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
}
.tab-button {
  padding: 10px 18px;
  background: rgba(183,11,11,0.1);
  color: var(--gray1);
  border: 2px solid var(--rm-red);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font);
  font-size: 0.88rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.tab-button.active {
  background: var(--rm-red);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(183,11,11,0.3);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Process steps */
.process-container { max-width: 1000px; margin: 2.5rem auto 0; position: relative; }
.process-steps { position: relative; counter-reset: step; }
.process-step { display: flex; margin-bottom: 60px; position: relative; }
.process-step:last-child { margin-bottom: 0; }
.process-number {
  flex: 0 0 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--rm-red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(183,11,11,0.3);
}
.process-number::before { counter-increment: step; content: counter(step); }
.process-content { flex: 1; padding: 0 30px; }
.process-title { font-size: 1.4rem; font-weight: 600; margin-bottom: 12px; color: var(--gray1); }
.process-description { font-size: 1rem; line-height: 1.7; color: var(--gray1); }
.process-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 40px;
  width: 3px;
  background: linear-gradient(to bottom, var(--rm-red) 0%, rgba(183,11,11,0.3) 100%);
  z-index: 0;
  transform: translateX(-50%);
}

/* Accordion */
.accordion { max-width: 800px; margin: 3rem auto; }
.accordion-item { margin-bottom: 15px; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; overflow: hidden; background: #ffffff; box-shadow: 0 4px 15px rgba(0,0,0,0.04); transition: border-color 0.3s ease; }
.accordion-item:hover { border-color: rgba(183,11,11,0.2); }
.accordion-item.active { border-color: var(--rm-red); }
.accordion-header { padding: 15px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.3s ease; }
.accordion-header:hover { background: rgba(183,11,11,0.05); }
.accordion-title { font-size: 1.05rem; font-weight: 600; color: var(--gray1); }
.accordion-icon { font-size: 1.1rem; color: var(--rm-red); transition: transform 0.3s ease; }
.accordion-item.active .accordion-icon { transform: rotate(180deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-item.active .accordion-content { max-height: 1000px; }
.accordion-body { padding: 0 20px 20px; font-size: 1rem; line-height: 1.7; color: var(--gray1); }

/* CTA banner */
.cta-banner {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(183,11,11,0.1);
  border-bottom: 1px solid rgba(183,11,11,0.1);
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(183,11,11,0.25) 0%, transparent 70%);
  z-index: 0;
}
.cta-banner .cta-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.cta-banner .cta-title { color: var(--gray1); font-size: clamp(1.6rem,3vw,2.5rem); font-weight: 700; margin-bottom: 1.25rem; }
.cta-banner .cta-text { font-size: 1.1rem; margin-bottom: 2rem; max-width: 600px; margin-inline: auto; color: var(--gray1); }
.cta-banner .cta-buttons { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }

/* Toolbox CTA */
.toolbox-cta {
  background: url("../img/qsar_toolbox_cta_highres.aa583f4d7745.webp") center/cover;
  color: white;
  padding: 80px 0;
  margin-top: 50px;
  border-top: 1px solid rgba(183, 11, 11, 0.2);
  position: relative;
}
.toolbox-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(3px);
  background: rgba(0, 0, 0, 0.15);
}
.toolbox-cta .container { position: relative; z-index: 1; }
.toolbox-cta .section-heading-c,
.toolbox-cta .section-subheading { color: #e6e6e6; }
.toolbox-cta .btn--outline { color: white; }

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.75rem;
  margin: 3rem 0;
}
.feature-item { background: #ffffff; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; padding: 24px; transition: all 0.4s var(--ease-out-expo); text-align: center; position: relative; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.04); }
.feature-item::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--rm-red), transparent); opacity: 0; transition: opacity 0.4s ease; }
.feature-item:hover::after { opacity: 1; }
.feature-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); background: #ffffff; border-color: rgba(183,11,11,0.2); }
.feature-icon { font-size: 2.5rem; color: var(--rm-red); margin-bottom: 15px; }
.feature-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; color: var(--gray1); }
.feature-text { font-size: 0.9rem; line-height: 1.6; color: var(--gray1); }

/* Grid modifier: force 2 columns for 4-card grids (avoids 3+1 orphan) */
.grid--2col {
  grid-template-columns: repeat(2, 1fr) !important;
}
@media (max-width: 768px) {
  .grid--2col { grid-template-columns: 1fr !important; }
}

/* Grid modifier: force 3 columns for 6-card grids (avoids 4+2 orphan) */
.grid--3col {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 768px) {
  .grid--3col { grid-template-columns: 1fr !important; }
}

/* 2-step cards (biocides) */
.steps-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; margin-top: 2.5rem; }
.step-card {
  flex: 1 1 400px;
  max-width: 500px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 30px;
  position: relative;
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: rgba(183,11,11,0.2); }
.step-number {
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  background: var(--rm-red);
  color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
}
.step-title { font-size: 1.25rem; font-weight: 600; margin: 10px 0 12px; color: var(--gray1); }
.step-description { color: var(--gray1); font-size: 1rem; line-height: 1.6; }

/* Featured services list (biocides R&D) */
.featured-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; margin-top: 2.5rem; }
.featured-service { padding: 25px; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; transition: all 0.4s var(--ease-out-expo); background: #ffffff; box-shadow: 0 4px 15px rgba(0,0,0,0.04); }
.featured-service:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: rgba(183,11,11,0.2); background: #ffffff; }
.featured-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; color: var(--gray1); display: flex; align-items: center; gap: 10px; }
.featured-title i { color: var(--rm-red); font-size: 1.3rem; }
.featured-list { list-style: none; padding-left: 20px; }
.featured-list li { margin-bottom: 8px; position: relative; padding-left: 20px; color: var(--gray1); }
.featured-list li::before { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--rm-red); font-size: 0.75rem; top: 3px; }

/* Alternating image+text sections (CLP) */
.alt-section { padding: 80px 0; position: relative; }
.alt-bg { background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); }
.flex-container { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem; }
.flex-container .image-column {
  flex: 1 1 400px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(183,11,11,0.12);
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 3rem;
}
.flex-container .content-column { flex: 1 1 460px; }
.reverse-row { flex-direction: row-reverse; }
.content-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; color: var(--gray1); position: relative; padding-bottom: 10px; }
.content-title::after { content: ""; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background: var(--rm-red); }
.content-text { font-size: 1rem; line-height: 1.7; margin-bottom: 1rem; color: var(--gray1); }
.bulletpoints { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.bulletpoints li { margin-bottom: 10px; position: relative; padding-left: 25px; color: var(--gray1); }
.bulletpoints li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--rm-red); }

/* Two-column intro (cosmetics, food) */
.two-column-section { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin: 3.5rem 0; }
.two-column-section .content-column { display: flex; flex-direction: column; justify-content: center; }
.two-column-section .content-column h3 { margin-bottom: 1.25rem; color: var(--gray1); font-size: 1.7rem; position: relative; padding-bottom: 15px; }
.two-column-section .content-column h3::after { content: ""; position: absolute; bottom: 0; left: 0; width: 60px; height: 3px; background: var(--rm-red); }
.two-column-section .image-column {
  border-radius: 8px;
  background: rgba(183,11,11,0.12);
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 3rem;
}

/* Examples grid (cosmetics) */
.examples-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; margin-top: 2.5rem; }
.example-card { background: #ffffff; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; padding: 25px; transition: all 0.4s var(--ease-out-expo); position: relative; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.04); }
.example-card::before { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: var(--rm-red); transition: width 0.3s ease; }
.example-card:hover::before { width: 100%; }
.example-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); background: #ffffff; border-color: rgba(183,11,11,0.2); }
.example-icon { position: absolute; top: 15px; right: 15px; font-size: 1.5rem; color: var(--rm-red); opacity: 0.5; }
.example-title { font-size: 1rem; font-weight: 600; color: var(--gray1); text-align: center; padding-right: 30px; }

/* Regulation table (food/feed) */
.regulation-table { width: 100%; border-collapse: collapse; margin: 2.5rem 0; }
.regulation-table th { background: var(--rm-red); color: white; text-align: left; padding: 15px 20px; font-weight: 600; }
.regulation-table td { padding: 15px 20px; border-bottom: 1px solid rgba(183,11,11,0.2); vertical-align: top; color: var(--gray1); }
.regulation-table tr:last-child td { border-bottom: none; }
.regulation-table tr:hover td { background: rgba(183,11,11,0.07); }
.regulation-category { font-weight: 700; margin-bottom: 5px; color: var(--gray1); }
.regulation-number { font-size: 0.88rem; opacity: 0.8; margin-bottom: 8px; color: var(--gray1); }
.application-list { list-style: none; padding: 0; }
.application-list li { position: relative; padding-left: 18px; margin-bottom: 6px; color: var(--gray1); }
.application-list li::before { content: "•"; color: var(--rm-red); position: absolute; left: 0; }
.mobile-regulation-card { display: none; background: rgba(183,11,11,0.05); border: 2px solid var(--rm-red); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.mobile-category { font-size: 1.05rem; font-weight: 700; color: var(--gray1); margin-bottom: 10px; border-bottom: 1px solid rgba(183,11,11,0.3); padding-bottom: 10px; }
.mobile-regulation { margin-bottom: 8px; font-size: 0.88rem; opacity: 0.8; color: var(--gray1); }

/* Shared fade-in animation */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s var(--ease-out-expo); }
.fade-in.active { opacity: 1; transform: translateY(0); }

/* Shared responsive overrides for page components */
@media (max-width: 992px) {
  .process-step { flex-direction: column !important; align-items: flex-start; padding-left: 30px; }
  .process-number { margin-bottom: 20px; }
  .process-line { left: 40px; }
  .two-column-section { grid-template-columns: 1fr; }
  .flex-container { flex-direction: column !important; }
}
@media (max-width: 768px) {
  .service-cards, .features-grid, .examples-grid, .service-card-container { grid-template-columns: 1fr; }
  .tab-button { flex: 1 0 40%; text-align: center; font-size: 0.85rem; padding: 8px; }
  .regulation-table { display: none; }
  .mobile-regulation-card { display: block; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer__legal h4::after, .footer__offices h4::after { left: 50%; transform: translateX(-50%); }
  .footer__legal a:hover { padding-left: 0; }
  .footer__offices-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ── Visual Enhancements ─────────────────────────────────────────── */

/* Subtle section separators */
.page-section + .page-section::before,
.intro-section + .page-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
  pointer-events: none;
}

/* Hero scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-indicator i {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.4);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Floating decorative elements for heroes */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(183, 11, 11, 0.12);
  z-index: 0;
  pointer-events: none;
}
.hero-particle--1 { width: 200px; height: 200px; top: 10%; right: -50px; animation: floatParticle 20s ease-in-out infinite; }
.hero-particle--2 { width: 120px; height: 120px; bottom: 20%; left: -30px; animation: floatParticle 20s ease-in-out infinite 7s; }
.hero-particle--3 { width: 80px; height: 80px; top: 40%; right: 15%; animation: floatParticle 20s ease-in-out infinite 13s; border-radius: 4px; }

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  25% { transform: translateY(-20px) rotate(5deg); opacity: 0.5; }
  50% { transform: translateY(-10px) rotate(-3deg); opacity: 0.3; }
  75% { transform: translateY(-25px) rotate(2deg); opacity: 0.4; }
}

/* Service grid item bottom-line animation (keep from original) */
.service-grid-item::after { transition: width 0.4s var(--ease-out-expo); }

/* ── Dark-context overrides (elements on dark backgrounds) ──── */

/* Page heroes sit on dark background images — text must stay light */
.page-hero .page-title,
.page-hero .page-subtitle { color: #e6e6e6; }
.page-hero .btn--outline { color: white; }

/* CTA banners with dark backgrounds */
.cta-banner .cta-title,
.cta-banner .cta-text { color: #e6e6e6; }
.cta-banner .btn--outline { color: white; }

/* Homepage hero slider */
.hero-slider .btn--outline { color: var(--rm-red); border-color: var(--rm-red); }
.hero-slider .btn--outline:hover { color: white; background: var(--rm-red); }
