/*
Theme Name: RomWald Staging Theme
Theme URI: https://www.romwald.ro/
Author: Lynx Creative Studio
Description: Prototype-aligned internal staging theme for RomWald. Not approved for production/client preview.
Version: 0.2.0
Text Domain: romwald
*/

:root {
  --blue-900: #203070;
  --blue-800: #204090;
  --blue-500: #4070B0;
  --red: #E04030;
  --ink: #111827;
  --muted: #5c6677;
  --line: #D8DEE8;
  --soft: #F5F7FA;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito Sans", "Aptos", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 64px);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216,222,232,.8);
}
.brand img { width: 178px; height: 54px; object-fit: contain; object-position: left center; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--blue-900); }
.header-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--blue-900);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
}

.section-pad { padding: clamp(44px, 5.8vw, 78px) clamp(20px, 5vw, 80px); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  min-height: min(760px, calc(100vh - 82px));
  background:
    radial-gradient(circle at 8% 15%, rgba(64,112,176,.14), transparent 34%),
    linear-gradient(135deg, #fff 0%, #f7f9fc 100%);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -.025em;
  font-family: "Nunito Sans", "Aptos Display", "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
}
h1 { font-size: clamp(44px, 7vw, 82px); color: var(--blue-900); max-width: 930px; }
h2 { font-size: clamp(32px, 4.4vw, 54px); color: var(--blue-900); }
h3 { font-size: 22px; color: var(--blue-900); }
.lead { font-size: clamp(18px, 2vw, 22px); color: #384154; max-width: 780px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 21px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: white; box-shadow: 0 14px 30px rgba(224,64,48,.24); }
.btn-secondary { background: white; color: var(--blue-900); border-color: var(--line); }
.btn-outline { border-color: rgba(255,255,255,.45); color: white; }
.trust-row { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-row span {
  background: rgba(32,48,112,.08);
  color: var(--blue-900);
  border: 1px solid rgba(32,48,112,.12);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.hero-visual { position: relative; }
.hero-visual img {
  border-radius: 32px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.visual-note, .small-note { color: var(--muted); font-size: 12px; margin-top: 10px; }

.section-heading { max-width: 900px; margin: 0 auto 38px; text-align: center; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.section-heading.narrow { max-width: 780px; }
.card-grid { display: grid; gap: 18px; }
.card-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .mini-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 12px 34px rgba(17,24,39,.05);
}
.card-number { color: var(--red); font-weight: 900; font-size: 12px; letter-spacing: .16em; }
.card p, .mini-card p { color: var(--muted); }
.card a, .mini-card a, .system-card a { color: var(--blue-800); font-weight: 900; }
.solutions, .brands { background: var(--white); }

.system-thinking { background: var(--blue-900); color: white; }
.system-thinking h2, .system-thinking h3 { color: white; }
.system-thinking p { color: rgba(255,255,255,.78); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 70px); align-items: center; }
.check-list { padding: 0; margin: 26px 0 0; list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; color: var(--muted); }
.system-thinking .check-list li { color: rgba(255,255,255,.86); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.system-diagram {
  min-height: 460px;
  border-radius: 34px;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0 16%, transparent 17%), rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  position: relative;
  display: grid;
  place-items: center;
}
.diagram-core {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.system-diagram span {
  position: absolute;
  background: white;
  color: var(--blue-900);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
}
.system-diagram span:nth-of-type(1) { top: 58px; left: 64px; }
.system-diagram span:nth-of-type(2) { top: 76px; right: 58px; }
.system-diagram span:nth-of-type(3) { left: 34px; bottom: 118px; }
.system-diagram span:nth-of-type(4) { right: 28px; bottom: 124px; }
.system-diagram span:nth-of-type(5) { bottom: 44px; left: 42%; }
.system-diagram span:nth-of-type(6) { top: 42%; right: 22px; }

.systems { background: var(--soft); }
.recommended-section { background: #fff; }
.recommended-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1180px; margin: 0 auto; }
.system-card { background: white; border: 1px solid var(--line); border-radius: 26px; padding: 26px; box-shadow: 0 12px 34px rgba(17,24,39,.05); display: grid; gap: 10px; }
.system-card span { color: var(--red); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 900; }
.system-card p { color: var(--muted); margin: 0; }
.section-actions { display: flex; justify-content: center; margin-top: 28px; }
.router-section { background: linear-gradient(135deg, var(--blue-900), #102050); color: white; }
.router-section h2, .router-section h3 { color: white; }
.router-section .light p:not(.eyebrow) { color: rgba(255,255,255,.76); }
.router-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1180px; margin: 0 auto; }
.router-card { border-radius: 30px; padding: clamp(26px, 4vw, 42px); border: 1px solid rgba(255,255,255,.16); }
.primary-route { background: rgba(255,255,255,.10); }
.secondary-route { background: rgba(255,255,255,.06); }
.router-card p, .router-card li { color: rgba(255,255,255,.78); }
.router-card ul { margin: 22px 0; padding-left: 20px; }

.founder { background: #fff; }
.founder-card {
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: clamp(18px, 3vw, 34px);
}
.founder-card img { border-radius: 28px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; box-shadow: var(--shadow); }
blockquote { margin: 18px 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.14; color: var(--blue-900); font-family: "Nunito Sans", "Aptos Display", "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif; font-weight: 900; letter-spacing: -.025em; }
.attribution { color: var(--red); font-weight: 900; }
.founder-copy > p:last-child { color: var(--muted); font-size: 18px; }

.brand-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 980px; margin: 0 auto; }
.brand-list span { padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--blue-900); font-weight: 900; background: white; }

.contact-section { background: var(--soft); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 74px); align-items: start; }
.contact-intro p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.contact-intro h2 { font-size: clamp(34px, 4vw, 58px); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: white; border-radius: 30px; border: 1px solid var(--line); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow); }
label { display: grid; gap: 8px; color: var(--blue-900); font-weight: 900; font-size: 14px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px; font: inherit; color: var(--ink); background: white; }
textarea { min-height: 128px; resize: vertical; }
.full { grid-column: 1 / -1; }
button.full { width: 100%; border: 0; }

.site-footer { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding: 42px clamp(20px, 5vw, 80px); background: #0c1434; color: rgba(255,255,255,.76); }
.site-footer img { width: 190px; height: 70px; object-fit: contain; object-position: left center; margin-bottom: 16px; background: white; border-radius: 14px; padding: 10px; }
.site-footer h3 { color: white; font-size: 18px; margin-bottom: 10px; }
.site-footer p { margin: 0; }

.subpage { background: var(--soft); }
.subhero { background: linear-gradient(135deg, white 0%, #eef3fb 100%); padding-top: clamp(70px, 8vw, 120px); }
.subhero h1 { max-width: 1080px; font-size: clamp(42px, 5.6vw, 74px); overflow-wrap: normal; word-break: normal; }
.subhero .lead { max-width: 820px; }
.subcontent { background: white; }

@media (max-width: 1060px) {
  .nav { display: none; }
  .hero, .split, .contact-section { grid-template-columns: 1fr; }
  .card-grid.five, .card-grid.three, .recommended-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .router-cards, .founder-card, .site-footer { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
}

@media (max-width: 640px) {
  .site-header { padding: 12px 16px; }
  .brand img { width: 136px; height: 42px; }
  .header-cta { padding: 10px 12px; font-size: 12px; }
  .section-pad { padding: 54px 16px; }
  h1 { font-size: 42px; }
  h2 { font-size: 34px; }
  .lead { font-size: 17px; }
  .card-grid.five, .card-grid.three, .recommended-grid, .contact-form { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .system-diagram { min-height: 360px; }
  .system-diagram span { position: static; margin: 6px; display: inline-flex; }
  .system-diagram { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 4px; padding: 22px; }
  .diagram-core { width: 130px; height: 130px; flex-basis: 130px; }
  blockquote { font-size: 28px; }
}


/* WordPress staging integration */
body.admin-bar .site-header { top: 32px; }
.rw-main { background: var(--white); }
.disabled-link { opacity: .78; cursor: not-allowed; }
.visual-form input:disabled,
.visual-form select:disabled,
.visual-form textarea:disabled,
.visual-form button:disabled {
  opacity: .78;
  cursor: not-allowed;
}
.rw-content {
  max-width: 920px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}
.rw-related .rw-section-heading,
.rw-section-heading {
  max-width: 900px;
  margin: 0 auto 34px;
  text-align: center;
}
.single .rw-hero,
.rw-solution-page .rw-hero,
.rw-system-page .rw-hero,
.rw-category-page .rw-hero {
  min-height: auto;
  display: block;
  background: linear-gradient(135deg, #fff 0%, #eef3fb 100%);
}
.single .rw-hero h1,
.rw-solution-page .rw-hero h1,
.rw-system-page .rw-hero h1,
.rw-category-page .rw-hero h1 {
  font-size: clamp(42px, 5.6vw, 74px);
}
.rw-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 21px; border-radius: 999px; font-weight: 800; border: 1px solid transparent; }
.rw-button-primary { background: var(--red); color: white; box-shadow: 0 14px 30px rgba(224,64,48,.24); }
.rw-note { color: var(--muted); font-size: 13px; }
.site-header, .section-pad, .site-footer { max-width: none; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }


/* Hermes v5 direct bridge polish */
.card a,
.mini-card a,
.system-card a,
.rw-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--blue-900);
  color: #fff !important;
  border: 1px solid rgba(32,48,112,.12);
  box-shadow: 0 10px 24px rgba(32,48,112,.13);
}
.card a:hover,
.mini-card a:hover,
.system-card a:hover,
.rw-card a:hover { transform: translateY(-1px); }
.system-card { min-height: 245px; align-content: start; }
.system-card a { align-self: end; }
.rw-related { padding-top: clamp(30px, 4vw, 54px); }
.rw-content.section-pad { padding-top: clamp(26px, 3vw, 44px); padding-bottom: clamp(30px, 4vw, 54px); }
.rw-system-detail {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}
.rw-system-visual,
.rw-visual-placeholder {
  min-height: 360px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 20%, rgba(224,64,48,.16), transparent 26%),
    radial-gradient(circle at 82% 22%, rgba(64,112,176,.18), transparent 24%),
    linear-gradient(135deg, #f8fafc, #eef3fb);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.rw-visual-placeholder::before {
  content: '';
  position: absolute;
  inset: 34px;
  border: 2px dashed rgba(32,48,112,.22);
  border-radius: 26px;
}
.rw-visual-placeholder::after {
  content: 'Imagine sistem / echipament';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--blue-900);
  font-weight: 900;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
}
.rw-system-page .rw-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: auto;
}
.rw-system-page .rw-hero .rw-hero-copy { max-width: 820px; }
.rw-system-nav { background: var(--soft); }
.rw-system-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}
.rw-system-nav-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--blue-900);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(17,24,39,.04);
}
.rw-system-nav-card span { color: var(--muted); font-size: 14px; font-weight: 700; }
@media (max-width: 900px) {
  .rw-system-detail,
  .rw-system-page .rw-hero,
  .rw-system-nav-grid { grid-template-columns: 1fr; }
  .rw-system-visual, .rw-visual-placeholder { min-height: 260px; }
}


/* Hermes v5.1 aligned card CTA buttons */
.card,
.mini-card,
.system-card,
.rw-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.card p,
.mini-card p,
.system-card p,
.rw-card p {
  flex: 1 1 auto;
}
.card a,
.mini-card a,
.system-card a,
.rw-card a {
  margin-top: auto;
}
.card-grid.five .card {
  min-height: 260px;
}
.card-grid.three .mini-card {
  min-height: 230px;
}
.recommended-grid .system-card {
  min-height: 265px;
}


/* Hermes v5.2 header dropdown navigation */
.nav { overflow: visible; }
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-item > a::after {
  content: '▾';
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  color: var(--muted);
  transform: translateY(-1px);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 245px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 70px rgba(17,24,39,.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  z-index: 80;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}
.nav-dropdown.wide { min-width: 310px; }
.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--blue-900);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}
.nav-dropdown a:hover {
  background: var(--soft);
  color: var(--red);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 1060px) {
  .nav-dropdown { display: none; }
}


/* Hermes v5.3 softer dropdown typography */
.nav-dropdown a {
  font-weight: 500;
  letter-spacing: 0;
}
.nav-dropdown a:hover {
  font-weight: 650;
}


/* Hermes v5.4 category detail design */
.rw-system-category-page .rw-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: auto;
  background:
    radial-gradient(circle at 8% 15%, rgba(64,112,176,.12), transparent 34%),
    linear-gradient(135deg, #fff 0%, #f7f9fc 100%);
}
.rw-category-info-card {
  border-radius: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff, #f7f9fc);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow);
}
.rw-category-info-card h3 { margin-bottom: 14px; }
.rw-category-info-card p { color: var(--muted); font-size: 18px; }
.rw-category-info-card .check-list li { color: var(--blue-900); font-weight: 800; }
.rw-system-category-page .rw-content { max-width: none; }
.rw-system-category-page .rw-note {
  display: inline-flex;
  margin-top: 20px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
}


/* Hermes v5.5 visible breadcrumbs */
.rw-breadcrumbs {
  position: sticky;
  top: 82px;
  z-index: 55;
  padding: 10px clamp(18px, 5vw, 80px);
  background: rgba(247,249,252,.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(32,48,112,.08);
}
.rw-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.rw-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}
.rw-breadcrumbs li + li::before {
  content: '›';
  color: rgba(32,48,112,.42);
  font-size: 18px;
  line-height: 1;
}
.rw-breadcrumbs a,
.rw-breadcrumbs span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.rw-breadcrumbs a {
  color: var(--blue-900);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(32,48,112,.08);
  font-weight: 650;
}
.rw-breadcrumbs a:hover {
  color: var(--red);
  border-color: rgba(224,64,48,.22);
  box-shadow: 0 8px 22px rgba(17,24,39,.05);
}
.rw-breadcrumbs span {
  color: var(--muted);
  font-weight: 500;
}
@media (max-width: 900px) {
  .rw-breadcrumbs { position: static; padding: 8px 16px; }
  .rw-breadcrumbs li { font-size: 12px; }
  .rw-breadcrumbs a, .rw-breadcrumbs span { min-height: 28px; padding: 5px 8px; }
}


/* Hermes v5.6 internal link architecture improvements */
.centered-actions {
  justify-content: center;
  margin-top: 20px;
}
.rw-overview-page .rw-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: auto;
}
.rw-solution-page .rw-content { max-width: none; }


/* Hermes v5.7 header/dropdown/breadcrumb stacking fix */
.site-header {
  z-index: 200;
  overflow: visible;
}
.nav,
.nav-item {
  overflow: visible;
}
.nav-dropdown {
  z-index: 260;
}
.rw-breadcrumbs {
  position: relative;
  top: auto;
  z-index: 40;
}
body.admin-bar .rw-breadcrumbs {
  top: auto;
}


/* Hermes v5.8 footer logo centering */
.site-footer > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.site-footer > div:first-child img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}


/* Hermes v5.9 sticky breadcrumb below header, dropdown-safe */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  overflow: visible;
}
body.admin-bar .site-header {
  top: 32px;
}
.nav,
.nav-item {
  overflow: visible;
}
.nav-dropdown {
  z-index: 700;
}
.rw-breadcrumbs {
  position: sticky;
  top: 87px;
  z-index: 320;
}
body.admin-bar .rw-breadcrumbs {
  top: 119px;
}
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .rw-breadcrumbs { top: 118px; }
}
@media (max-width: 900px) {
  .rw-breadcrumbs { position: static; top: auto; }
}


/* Hermes v5.10 center logo inside white footer badge */
.site-footer img {
  object-position: center center;
}
.site-footer > div:first-child img {
  object-position: center center;
  padding-left: 14px;
  padding-right: 14px;
}


/* Hermes v5.11 premium HVAC system diagram */
.system-diagram {
  min-height: 520px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 50%, rgba(224,64,48,.18) 0 15%, transparent 16%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.12) 0 36%, transparent 37%),
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  border: 1px solid rgba(255,255,255,.18);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 26px 80px rgba(0,0,0,.18);
}
.system-diagram::before {
  content: '';
  position: absolute;
  width: min(72%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.20);
  box-shadow:
    0 0 0 56px rgba(255,255,255,.035),
    0 0 0 112px rgba(255,255,255,.025);
}
.system-diagram::after {
  content: '';
  position: absolute;
  inset: 12%;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255,255,255,.16) 18% 82%, transparent 82% 100%) center 47% / 100% 1px no-repeat,
    linear-gradient(0deg, transparent 0 20%, rgba(255,255,255,.14) 20% 80%, transparent 80% 100%) center center / 1px 100% no-repeat,
    linear-gradient(32deg, transparent 0 30%, rgba(255,255,255,.11) 30% 70%, transparent 70% 100%) center / 100% 1px no-repeat,
    linear-gradient(-32deg, transparent 0 30%, rgba(255,255,255,.11) 30% 70%, transparent 70% 100%) center / 100% 1px no-repeat;
  opacity: .85;
}
.diagram-core {
  position: relative;
  z-index: 3;
  width: 178px;
  height: 178px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--red), #f15a48);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 950;
  padding: 20px;
  box-shadow: 0 28px 70px rgba(224,64,48,.32), inset 0 1px 0 rgba(255,255,255,.25);
}
.diagram-core::after {
  content: 'proiectare • echilibrare • control';
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.78);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: .03em;
}
.system-diagram span {
  z-index: 4;
  min-width: 132px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.96);
  color: var(--blue-900);
  padding: 12px 15px;
  border-radius: 18px;
  font-weight: 850;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 18px 46px rgba(0,0,0,.14);
}
.system-diagram span::before {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(32,48,112,.08);
  color: var(--red);
  font-size: 15px;
  flex: 0 0 auto;
}
.system-diagram span:nth-of-type(1)::before { content: '↟'; }
.system-diagram span:nth-of-type(2)::before { content: '❄'; }
.system-diagram span:nth-of-type(3)::before { content: '♨'; }
.system-diagram span:nth-of-type(4)::before { content: '◌'; }
.system-diagram span:nth-of-type(5)::before { content: '⌁'; }
.system-diagram span:nth-of-type(6)::before { content: '✓'; }
.system-diagram span:nth-of-type(1) { top: 58px; left: 54px; }
.system-diagram span:nth-of-type(2) { top: 78px; right: 58px; }
.system-diagram span:nth-of-type(3) { left: 48px; bottom: 110px; }
.system-diagram span:nth-of-type(4) { right: 44px; bottom: 112px; }
.system-diagram span:nth-of-type(5) { bottom: 38px; left: 50%; transform: translateX(-50%); }
.system-diagram span:nth-of-type(6) { top: 43%; right: 32px; }
@media (max-width: 700px) {
  .system-diagram { min-height: 620px; }
  .diagram-core { width: 150px; height: 150px; }
  .system-diagram span { min-width: 150px; }
  .system-diagram span:nth-of-type(1) { top: 28px; left: 50%; transform: translateX(-50%); }
  .system-diagram span:nth-of-type(2) { top: 112px; right: 16px; }
  .system-diagram span:nth-of-type(3) { left: 16px; bottom: 130px; }
  .system-diagram span:nth-of-type(4) { right: 16px; bottom: 74px; }
  .system-diagram span:nth-of-type(5) { bottom: 20px; left: 50%; transform: translateX(-50%); }
  .system-diagram span:nth-of-type(6) { top: 112px; left: 16px; right: auto; }
}


/* Hermes v5.12 uploaded hero image display */
.rw-hero-with-media {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .9fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}
.rw-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(32,48,112,.08);
  background: var(--soft);
}
.rw-hero-media .rw-visual-placeholder {
  min-height: 360px;
}
@media (max-width: 980px) {
  .rw-hero-with-media { grid-template-columns: 1fr; }
}


/* Hermes v5.13 hero image right-side layout + optimized display */
.rw-hero.rw-hero-with-media {
  display: grid !important;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr) !important;
  gap: clamp(32px, 5vw, 76px) !important;
  align-items: center !important;
}
.rw-hero-with-media .rw-hero-copy {
  min-width: 0;
}
.rw-hero-with-media .rw-hero-media {
  align-self: center;
  min-width: 0;
}
.rw-hero-with-media .rw-hero-media img {
  width: 100%;
  max-height: 460px;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: center;
  border-radius: 34px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(32,48,112,.08);
  background: #f5f7fa;
}
.rw-product-hero-media img {
  object-fit: contain;
  padding: clamp(22px, 4vw, 46px);
  background: linear-gradient(135deg, #fff, #eef3fb);
}
@media (max-width: 980px) {
  .rw-hero.rw-hero-with-media {
    grid-template-columns: 1fr !important;
  }
  .rw-hero-with-media .rw-hero-media img {
    max-height: none;
  }
}


/* Hermes v5.14 cleaner product hero title wrapping */
.rw-system-page .rw-hero-copy h1 {
  max-width: 10.5ch;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
@media (min-width: 1180px) {
  .rw-system-page .rw-hero-copy h1 {
    font-size: clamp(4rem, 4.7vw, 6.1rem);
    line-height: .98;
  }
}
.rw-system-page .rw-product-hero-media img {
  object-fit: contain;
  padding: clamp(28px, 4.2vw, 54px);
}


/* Hermes v5.15 system AI hero images fill media card */
.rw-system-page .rw-product-hero-media img {
  object-fit: cover !important;
  padding: 0 !important;
  background: transparent !important;
}
.rw-system-page .rw-hero-media {
  overflow: hidden;
  border-radius: 34px;
}


/* Hermes v5.16 force system hero media edge-to-edge */
.rw-system-page .rw-hero-media {
  aspect-ratio: 16 / 11;
  width: 100%;
  max-height: none !important;
  background: transparent !important;
}
.rw-system-page .rw-hero-media img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  display: block;
}


/* Hermes v5.17 system technical context image */
.rw-system-detail .rw-detail-media {
  min-width: 0;
}
.rw-system-detail .rw-detail-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
  border-radius: 34px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(32,48,112,.08);
}


/* Hermes v5.18 overview page hero images */
.rw-category-overview-page .rw-hero,
.rw-solutions-overview-page .rw-hero,
.rw-systems-overview-page .rw-hero {
  display: grid !important;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .85fr) !important;
  gap: clamp(32px, 5vw, 76px) !important;
  align-items: center !important;
}
.rw-overview-hero-media {
  min-width: 0;
  overflow: hidden;
  border-radius: 34px;
}
.rw-overview-hero-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
  border-radius: 34px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(32,48,112,.08);
}
@media (max-width: 980px) {
  .rw-category-overview-page .rw-hero,
  .rw-solutions-overview-page .rw-hero,
  .rw-systems-overview-page .rw-hero {
    grid-template-columns: 1fr !important;
  }
}


/* Hermes v5.19 legal pages and verified footer contact */
.site-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.site-footer a:hover {
  text-decoration: underline;
}
.rw-legal-hero {
  display: block !important;
  max-width: 1180px;
  margin: 0 auto;
}
.rw-legal-hero .rw-hero-copy {
  max-width: 900px;
}
.rw-legal-card {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(32,48,112,.08);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 4vw, 56px);
}
.rw-legal-card h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: clamp(1.45rem, 2vw, 2rem);
}
.rw-legal-card h2:first-child {
  margin-top: 0;
}
.rw-legal-card p,
.rw-legal-card li {
  color: var(--muted);
  line-height: 1.75;
}
.rw-legal-card ul {
  padding-left: 1.35rem;
}


/* Hermes v5.20 mobile hamburger menu + live test contact form */
.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 80;
}
.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--blue-900);
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}
body.mobile-menu-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.mobile-menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
body.mobile-menu-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.consent-row {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}
.consent-row input { width: auto; margin-top: 5px; }
.romwald-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 800;
}
.form-status.success { background: rgba(22, 163, 74, .10); color: #166534; border: 1px solid rgba(22, 163, 74, .2); }
.form-status.error { background: rgba(224,64,48,.10); color: #991b1b; border: 1px solid rgba(224,64,48,.22); }
@media (max-width: 1060px) {
  .mobile-menu-toggle { display: inline-flex; }
  .site-header { gap: 12px; }
  .site-header .header-cta { margin-left: auto; }
  .nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    z-index: 70;
  }
  body.mobile-menu-open .nav { display: flex; }
  .nav > a,
  .nav-item > a {
    padding: 13px 14px;
    border-radius: 14px;
    color: var(--blue-900);
    font-weight: 900;
  }
  .nav-item { display: grid; align-items: stretch; }
  .nav-dropdown,
  .nav-dropdown.wide {
    position: static !important;
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 0 8px 14px !important;
    background: transparent !important;
    min-width: 0 !important;
  }
  .nav-dropdown a {
    padding: 8px 12px !important;
    color: var(--muted) !important;
    font-size: 14px;
    font-weight: 700 !important;
  }
}
@media (max-width: 640px) {
  .header-cta { display: none; }
  .nav { top: 68px; left: 12px; right: 12px; }
}


/* Hermes v5.21 keep mobile CTA visible next to hamburger */
@media (max-width: 1060px) {
  .site-header .header-cta {
    display: inline-flex !important;
    margin-left: auto !important;
    white-space: nowrap !important;
  }
}
@media (max-width: 640px) {
  .site-header .header-cta {
    display: inline-flex !important;
    padding: 9px 11px !important;
    font-size: 12px !important;
  }
  .site-header .brand img { width: 124px !important; height: auto !important; }
}


/* Hermes v5.22 stable mobile header order: logo + CTA + hamburger */
.header-cta .cta-short { display: none; }
@media (max-width: 1060px) {
  .site-header { display: flex !important; flex-wrap: nowrap !important; }
  .site-header .brand { order: 1 !important; }
  .site-header .header-cta {
    order: 2 !important;
    display: inline-flex !important;
    margin-left: auto !important;
    margin-right: 8px !important;
    flex: 0 0 auto !important;
    min-height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .mobile-menu-toggle { order: 3 !important; display: inline-flex !important; }
  #primary-navigation { order: 4 !important; }
}
@media (max-width: 430px) {
  .header-cta .cta-full { display: none !important; }
  .header-cta .cta-short { display: inline !important; }
  .site-header .header-cta { padding: 9px 12px !important; font-size: 12px !important; }
  .site-header .brand img { width: 132px !important; }
}
@media (max-width: 360px) {
  .site-header .brand img { width: 116px !important; }
  .site-header .header-cta { padding: 8px 10px !important; }
}


/* Hermes v5.24 cookie consent banner */
.romwald-cookie-consent {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(12,20,52,.96);
  color: #fff;
  box-shadow: 0 24px 70px rgba(17,24,39,.24);
}
.romwald-cookie-consent[hidden] { display: none !important; }
.romwald-cookie-consent p { margin: 4px 0 0; color: rgba(255,255,255,.78); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-actions button {
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  font-weight: 900;
  cursor: pointer;
}
.cookie-reject { background: transparent; color: #fff; }
.cookie-accept { background: var(--red); color: #fff; border-color: var(--red) !important; }
@media (max-width: 700px) {
  .romwald-cookie-consent { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions button { flex: 1 1 auto; }
}


/* Hermes v5.25 final mobile header normalization */
@media (max-width: 1060px) {
  .site-header { justify-content: flex-start !important; }
  .site-header .brand { order: 1 !important; flex: 0 1 auto !important; }
  .site-header .header-cta { order: 2 !important; margin-left: auto !important; margin-right: 8px !important; }
  .site-header .mobile-menu-toggle { order: 3 !important; margin-left: 0 !important; }
  .site-header #primary-navigation { order: 4 !important; }
}


/* Hermes v5.27 solution pages text-only need section */
.rw-solution-text-only {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(17,24,39,.07);
}
.rw-solution-text-only > *:last-child { margin-bottom: 0; }
.rw-solution-text-only figure.wp-block-image {
  margin: 28px 0;
}
.rw-solution-text-only figure.wp-block-image img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(216,222,232,.9);
  box-shadow: 0 18px 44px rgba(17,24,39,.08);
  background: #f8fafc;
}
.rw-solution-text-only figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}
.rw-image-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  margin: 30px 0;
}
.rw-image-columns figure.wp-block-image { margin: 0; }
.rw-image-columns figure.wp-block-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.rw-image-bg {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 18px 40px rgba(9, 22, 58, 0.09);
  border: 1px solid rgba(22, 48, 110, 0.12);
}
.rw-next-compact {
  background: #fff;
  padding-top: clamp(34px, 4.4vw, 62px);
  padding-bottom: clamp(34px, 4.4vw, 62px);
}
.rw-next-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 280px));
  justify-content: center;
  gap: 16px;
}
.rw-next-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17,24,39,.055);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rw-next-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(216,222,232,.78);
}
.rw-next-card-body {
  padding: 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
}
.rw-next-type {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(224,64,48,.09);
  color: var(--red);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rw-next-card h3 {
  font-size: 19px;
  line-height: 1.08;
}
.rw-next-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  flex: 1;
}
.rw-next-link {
  display: inline-flex;
  margin-top: auto;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--blue-900);
  color: #fff !important;
  font-size: 13px;
  font-weight: 900;
}
.rw-visual-carousel-section {
  overflow: hidden;
}
.rw-visual-carousel {
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  padding: 4px 0 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.rw-visual-carousel-track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: rw-carousel-marquee 34s linear infinite;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .rw-visual-carousel:hover .rw-visual-carousel-track,
  .rw-visual-carousel:focus-within .rw-visual-carousel-track {
    animation-play-state: paused;
  }
}
.rw-visual-carousel .rw-next-card {
  width: min(31vw, 360px);
  min-width: 270px;
  scroll-snap-align: none;
}
.rw-carousel-duplicate {
  display: flex;
  gap: 16px;
}
@keyframes rw-carousel-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 8px)); }
}
@media (prefers-reduced-motion: reduce) {
  .rw-visual-carousel {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .rw-visual-carousel-track {
    animation: none;
  }
}
.rw-system-category-page #jp-relatedposts,
.rw-solution-page #jp-relatedposts {
  display: none !important;
}
.rw-system-category-page .rw-content {
  max-width: 1180px;
}
.rw-system-category-page .rw-system-detail {
  grid-template-columns: minmax(0, 1fr);
  max-width: 980px;
}
.rw-system-category-page .rw-category-info-card {
  min-height: auto;
  padding: clamp(24px, 3vw, 34px);
}
.rw-system-category-page .rw-category-info-card .check-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 20px;
}
.rw-category-criteria-strip {
  margin-top: clamp(28px, 3.5vw, 42px);
  border-radius: 28px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid rgba(32, 48, 112, .10);
  box-shadow: 0 12px 34px rgba(17, 24, 39, .045);
}
.rw-category-criteria-strip .eyebrow {
  margin-bottom: 8px;
}
.rw-category-criteria-strip h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin-bottom: 8px;
}
.rw-category-criteria-strip p:not(.eyebrow) {
  max-width: 780px;
  margin: 0 0 18px;
  color: var(--muted);
}
.rw-category-criteria-strip .rw-criteria-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.rw-category-criteria-strip .rw-criteria-pills li {
  padding: 10px 14px 10px 34px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(216,222,232,.95);
  box-shadow: 0 8px 20px rgba(17,24,39,.035);
  color: var(--blue-900);
  font-size: 14px;
  font-weight: 900;
}
.rw-category-criteria-strip .rw-criteria-pills li::before {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
}
@media (max-width: 760px) {
  .rw-system-category-page .rw-category-info-card .check-list { grid-template-columns: 1fr; }
}
.rw-static-visual-card .rw-next-thumb {
  min-height: 180px;
}
.rw-home-process-gallery,
.rw-home-system-gallery {
  max-width: 1180px;
  margin: 0 auto;
}
.rw-home-process-gallery {
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
}
.rw-home-system-gallery {
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
}
#solutii .rw-visual-carousel,
#categorii .rw-visual-carousel {
  margin-top: 6px;
}
@media (max-width: 980px) {
  .rw-home-process-gallery,
  .rw-home-system-gallery {
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    justify-content: center;
  }
}
@media (max-width: 640px) {
  .rw-home-process-gallery,
  .rw-home-system-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .rw-next-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 280px));
    justify-content: center;
  }
  .rw-visual-carousel .rw-next-card { width: min(42vw, 340px); }
}
@media (max-width: 760px) {
  .rw-next-grid { grid-template-columns: 1fr; }
  .rw-visual-carousel .rw-next-card { width: 82vw; min-width: 240px; }
}
.rw-lead-cta-wrap {
  padding-top: clamp(20px, 3vw, 34px);
  padding-bottom: clamp(26px, 4vw, 48px);
}
.rw-lead-cta-card {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  padding: clamp(26px, 4vw, 48px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 20%, rgba(224,64,48,.20), transparent 30%),
    linear-gradient(135deg, var(--blue-900), #16245c);
  color: #fff;
  box-shadow: 0 26px 70px rgba(17,24,39,.18);
  overflow: hidden;
}
.rw-lead-cta-card .eyebrow,
.rw-lead-cta-card h2 {
  color: #fff;
}
.rw-lead-cta-card .eyebrow {
  color: #ffddd9;
}
.rw-lead-cta-card h2 {
  font-size: clamp(30px, 4vw, 52px);
  max-width: 760px;
}
.rw-lead-cta-card p:not(.eyebrow) {
  color: rgba(255,255,255,.84);
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 780px;
  margin: 16px 0 0;
}
.rw-lead-cta-actions {
  display: grid;
  gap: 12px;
  justify-items: start;
  min-width: 240px;
}
.rw-lead-cta-actions span {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}
@media (max-width: 980px) {
  .rw-hero.rw-hero-with-media .rw-hero-media,
  .rw-hero .rw-overview-hero-media,
  .hero .hero-visual {
    order: -1;
  }
  .rw-hero.rw-hero-with-media,
  .rw-category-overview-page .rw-hero,
  .rw-solutions-overview-page .rw-hero,
  .rw-systems-overview-page .rw-hero,
  .hero {
    grid-template-columns: 1fr !important;
  }
  .rw-lead-cta-card {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .rw-solution-text-only { padding: 24px; border-radius: 24px; }
  .rw-image-columns { grid-template-columns: 1fr; }
}
