/*
* Ajustări locale pentru structura, navigarea și componentele site-ului static.
* Stilurile capturate din versiunea publică se află în original-site.css.
*/
@font-face {
  font-family: Inter;
  src: url('../fonts/inter.woff2') format('woff2');
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: #172033;
  background: #fff;
}

button, a {
  font: inherit;
}

/* Antet și navigare principală. */
.top {
  height: 104px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 10px 7.5%;
  gap: 25px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 8px #0002;
}

.brand {
  display: block;
  flex: 0 0 auto;
  background: transparent;
  box-shadow: none;
}

.brand img {
  display: block;
  width: 144px;
  height: 80px;
  object-fit: fill;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  background: transparent;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.top nav button {
  border: 0;
  background: none;
  padding: 12px 13px;
  border-radius: 7px;
  cursor: pointer;
  color: #202938;
  font-weight: 600;
}

.top nav button:hover, .top nav button.active {
  background: #eff6ff;
  color: #1261b8;
}

.top nav .career {
  background: #5269e8;
  color: #fff;
}

.top nav .career:hover, .top nav .career.active {
  background: #4057d2;
  color: #fff;
}

.top nav .quote {
  background: #d65b3d;
  color: white;
}

.top nav .quote:hover, .top nav .quote.active {
  background: #bd482e;
  color: #fff;
}

.hours {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 13px;
  color: #555;
}

.hamb {
  display: none;
  border: 0;
  background: #526fe3;
  color: #fff;
  padding: 10px 13px;
  border-radius: 6px;
}

.product-nav {
  position: sticky;
  top: 104px;
  z-index: 40;
  display: flex;
  background: #dbeafe;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #aac8ee;
}

.product-page .product-nav {
  display: none;
}

.cat {
  position: relative;
  flex: 1;
  min-width: 0;
}

#productNav .cat>button {
  width: 100%;
  height: 80px;
  border: 0;
  border-right: 1px solid #9bbbea;
  background: #a7c2f4;
  color: #172033;
  padding: 12px 8px;
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 14px!important;
  font-weight: 400!important;
  line-height: 20px!important;
}

#productNav .cat>button:hover, #productNav .cat.open>button {
  background: #7ca6ed;
  color: #fff;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 310px;
  background: #fff;
  box-shadow: 0 10px 25px #0003;
  border: 1px solid #ddd;
  z-index: 100;
}

.cat.open>.dropdown, .cat:hover>.dropdown {
  display: block;
}

.menu-item {
  position: relative;
}

.menu-item>button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #fff;
  padding: 12px 15px;
  text-align: left;
  cursor: pointer;
}

.menu-item>button:hover {
  background: #eff6ff;
  color: #1261b8;
}

.nested {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 260px;
  background: #fff;
  box-shadow: 0 10px 25px #0003;
}

.menu-item:hover>.nested, .menu-item.open>.nested {
  display: block;
}

/* Pagina principală și secțiunile generale de conținut. */
.hero {
  height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url('../images/hero-filters.jpeg') center/cover no-repeat;
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #0009;
}

.hero>div {
  position: relative;
  z-index: 1;
  max-width: 950px;
  padding: 25px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.12;
  margin: 0 0 20px;
}

.hero p {
  font-size: 22px;
}

.section {
  max-width: 1200px;
  margin: auto;
  padding: 70px 25px;
}

.section h2 {
  text-align: center;
  font-size: 36px;
  margin: 0 0 40px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
  margin: 45px 0;
}

.split img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  border-radius: 10px;
}

.split h3 {
  font-size: 28px;
}

.checks {
  padding: 0;
  list-style: none;
}

.checks li {
  margin: 12px 0;
}

.checks li:before {
  content: '✓';
  color: #1670d2;
  font-weight: bold;
  margin-right: 10px;
}

.btn {
  display: inline-block;
  border: 0;
  background: #1670d2;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}

.brands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.brand-card {
  text-align: center;
  padding: 25px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  box-shadow: 0 5px 18px #0001;
}

.brand-card img {
  height: 100px;
  max-width: 80%;
  object-fit: contain;
}

/* Pagina „Despre noi” și certificatele mărite. */
.about {
  background: #f7f9fc;
}

.about-full {
  background: #effcf9;
  padding: 80px 3%;
  min-height: calc(100vh - 104px);
}

.about-layout {
  max-width: 1540px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-visual {
  background: #fff;
  border-radius: 9px;
  padding: 16px;
  box-shadow: 0 12px 30px #17324d1f;
}

.about-logo-large {
  display: block;
  width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: contain;
  border-radius: 0!important;
}

.about-copy h2 {
  text-align: left;
  color: #392ab8;
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 18px;
}

.about-copy p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 22px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
  font-weight: 700;
  margin: 26px 0;
}

.about-highlights span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-highlights b {
  color: #135dff;
  font-size: 24px;
  line-height: 1;
}

.about-highlights span:nth-child(2) b {
  color: #00a83b;
}

.about-highlights span:nth-child(3) b {
  color: #8b00ff;
}

.certificates {
  background: #fff;
  border: 1px solid #172033;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 5px #0002;
}

.certificates h3 {
  font-size: 20px;
  margin: 0 0 16px;
}

.certificate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.certificate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 0;
  background: transparent;
  color: #344054;
  cursor: zoom-in;
  padding: 0;
  font: inherit;
  text-align: center;
}

.certificate-frame {
  display: block;
  width: 100%;
  border: 1px solid #172033;
  border-radius: 9px;
  padding: 9px;
  background: #fff;
  box-shadow: 0 6px 14px #0002;
  transition: transform .2s, box-shadow .2s;
}

.certificate-card:hover .certificate-frame {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px #0003;
}

.certificate-card strong {
  color: #174ae5;
  margin-top: 12px;
}

.certificate-card:nth-child(2) strong {
  color: #07852d;
}

.certificate-card span:not(.certificate-frame) {
  font-size: 13px;
  margin-top: 2px;
}

.certificate-card small {
  font-size: 13px;
  color: #667085;
  margin-top: 4px;
}

.certificate-frame>img {
  display: block;
  width: auto;
  height: 290px;
  max-width: 100%;
  margin: auto;
  object-fit: contain;
  border-radius: 0!important;
}

.certificate-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000d;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  color: #fff;
}

.certificate-zoom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: min(725px, 82vw);
  max-height: 94vh;
}

.certificate-zoom>img {
  display: block;
  max-width: 100%;
  max-height: calc(94vh - 40px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 18px 60px #0008;
}

.certificate-zoom>strong {
  font-size: 20px;
}

.certificate-close {
  position: absolute;
  right: 24px;
  top: 14px;
  font-size: 46px;
  font-weight: 300;
}

.modal-open {
  overflow: hidden;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 35px;
}

.feature {
  background: #fff;
  padding: 25px;
  text-align: center;
  border-radius: 9px;
  box-shadow: 0 4px 15px #0001;
}

/* Pagini de produs, tabele, contact și formulare. */
.page-hero {
  background: linear-gradient(135deg, #f7fafc, #dbeafe);
  padding: 65px 25px;
  text-align: center;
}

.page-hero h1 {
  font-size: 43px;
  margin: 0 0 12px;
}

.catalog {
  max-width: 1200px;
  margin: auto;
  padding: 40px 25px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 15px #0001;
}

.product-card .inside {
  padding: 22px;
}

.product-card h2 {
  font-size: 22px;
  margin-top: 0;
  color: #174f91;
}

.product-card ul {
  padding-left: 20px;
}

.table-wrap {
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 12px #0001;
  margin-top: 25px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
}

th {
  background: #1769c2;
  color: white;
}

th, td {
  padding: 12px;
  border: 1px solid #d6d9de;
  text-align: left;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}

.contact-card, .form-card {
  padding: 28px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 18px #0002;
}

.form-card label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
}

.form-card input, .form-card textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.hp {
  position: absolute;
  left: -9999px;
}

.status {
  margin-top: 12px;
}

.inventory {
  columns: 2;
  column-gap: 35px;
}

.inventory section {
  break-inside: avoid;
  margin-bottom: 25px;
}

/* Subsol și acțiuni rapide flotante. */
footer {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.mail-float, .wa-float {
  position: fixed;
  z-index: 60;
  right: 18px;
  color: white;
  padding: 12px 17px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 15px #0003;
}

.mail-float {
  bottom: 78px;
  background: #526fe3;
}

.wa-float {
  bottom: 20px;
  background: #22a447;
}

.real-product>button:first-child {
  cursor: pointer;
}

.real-product button[data-back-to].text-blue-600:not(.border) {
  border-width: 0;
}

/*
 * Filele lungi din paginile de filtre trebuie să rămână în interiorul barei.
 * Containerul interior se poate micșora, iar derularea se face numai în el,
 * fără să mărească lățimea întregii pagini.
 */
.real-product .sticky .flex.items-center.gap-4.overflow-x-auto > .flex.gap-2.overflow-x-auto.pb-2 {
  flex: 1 1 auto;
  min-width: 0;
}

.real-product .sticky .flex.items-center.gap-4.overflow-x-auto > .flex.gap-2.overflow-x-auto.pb-2 > button.text-sm {
  padding-right: 10px;
  padding-left: 10px;
  font-size: 12px!important;
  line-height: 16px!important;
}

.real-product img {
  max-width: 100%;
  height: auto;
}

/*
 * Sigla MXM din subsol trebuie să rămână mică, la fel ca pe pagina Acasă.
 * Regula generală de mai sus este utilă imaginilor de produs, dar nu trebuie
 * să suprascrie înălțimea `h-20` a siglei din subsolul paginii Contact.
 */
.real-product footer img[alt="Made by MXM"] {
  width: auto;
  height: 5rem;
}

.real-product h1, .real-product h2, .real-product h3, .real-product h4, .real-product h5, .real-product h6 {
  scroll-margin-top: 180px;
}

.contact-real-form .hp {
  position: absolute!important;
  left: -9999px!important;
  width: 1px!important;
  height: 1px!important;
  overflow: hidden!important;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000c;
  padding: 4vw;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.image-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 12px 45px #0008;
}

/* Adaptare pentru tabletă. */
@media (max-width: 900px) {
  .top {
    height: 88px;
    padding: 6px 16px;
    gap: 8px;
  }

  .brand img {
    width: 144px;
    height: 80px;
  }

  .hamb {
    display: none;
  }

  .top nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    background: transparent;
    padding: 0;
    box-shadow: none;
    gap: 5px;
    margin-left: auto;
  }

  .top nav.open {
    display: flex;
  }

  .top nav button {
    display: none;
    text-align: left;
  }

  .top nav .career, .top nav .quote {
    display: block;
    padding: 9px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hours {
    display: flex;
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .product-nav {
    top: 88px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  /*
   * Cât timp un submeniu este deschis, bara nu îl mai taie la înălțimea ei.
   * Clasa este controlată de app.js la atingerea unei categorii.
   */
  .product-nav.menu-open {
    overflow: visible;
  }

  .cat {
    min-width: 145px;
  }

  #productNav .cat>button {
    height: 64px;
    padding: 8px 4px;
    font-size: 12px!important;
    line-height: 16px!important;
  }

  .dropdown {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 154px;
    min-width: 0;
    max-height: 65vh;
    overflow: auto;
    z-index: 1000;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .dropdown button, .nested button {
    min-height: 44px;
    touch-action: manipulation;
  }

  .nested {
    position: static;
    box-shadow: none;
    border-left: 4px solid #93c5fd;
  }

  .hero {
    height: 430px;
  }

  .hero h1 {
    font-size: 37px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split:nth-child(odd) img {
    order: -1;
  }

  .features {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-full {
    padding: 55px 22px;
  }
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-copy h2 {
    font-size: 32px;
  }
  .about-highlights {
    grid-template-columns: 1fr 1fr;
  }

}

/* Adaptare pentru telefoane. */
@media (max-width: 540px) {
  .top {
    padding: 6px 10px;
    gap: 5px;
  }

  .brand img {
    width: 96px;
    height: 48px;
  }

  .top nav .career, .top nav .quote {
    padding: 8px 8px;
    font-size: 11px;
  }

  .hours {
    font-size: 10px;
  }

  .hero {
    height: 390px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 17px;
  }

  .section {
    padding: 48px 18px;
  }

  .section h2 {
    font-size: 29px;
  }

  .features, .catalog-grid {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .inventory {
    columns: 1;
  }

  .about-highlights, .certificate-grid {
    grid-template-columns: 1fr;
  }
  .certificate-card {
    max-width: 340px;
    width: 100%;
    margin: auto;
  }
  .certificate-zoom {
    width: min(430px, 86vw);
  }

  .mail-float span, .wa-float span {
    display: none;
  }

  .mail-float, .wa-float {
    padding: 13px 16px;
  }

}
