/**
 * Medicadent enterprise homepage — Instrument Catalog.
 */

body.tc-home-premium {
  background: #fff;
}

.md-ent-home {
  display: block;
  background: #fff;
}

.md-ent-home > section > .container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ── Hero ── */
.md-ent-hero {
  position: relative;
  min-height: clamp(560px, 72vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: #0b1418;
}

.md-ent-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.md-ent-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
}

.md-ent-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 20, 24, 0.92) 0%, rgba(11, 20, 24, 0.72) 42%, rgba(11, 20, 24, 0.28) 72%, rgba(11, 20, 24, 0.08) 100%),
    linear-gradient(0deg, rgba(11, 20, 24, 0.55) 0%, transparent 48%);
}

.md-ent-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(72px, 10vw, 120px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

.md-ent-hero__brand {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.md-ent-hero__title {
  max-width: 16ch;
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #d8fbff;
}

.md-ent-hero__support {
  max-width: 46ch;
  margin: 0 0 28px;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.md-ent-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.md-ent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius, 3px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.md-ent-btn--primary {
  background: #0b8796;
  color: #fff;
  border: 1px solid transparent;
}

.md-ent-btn--primary:hover {
  background: #075b66;
  color: #fff;
}

.md-ent-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.md-ent-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* ── Trust ── */
.md-ent-trust {
  padding: 32px 0;
  background: #f4f7f8;
  border-bottom: 1px solid var(--line, #c9d2d0);
}

.md-ent-trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.md-ent-trust__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  border: 0;
}

.md-ent-trust__heading { display: flex; align-items: center; gap: 10px; }
.md-ent-trust__heading > svg { width: 22px; height: 22px; flex: 0 0 22px; color: #0b8796; }

.md-ent-trust__item:last-child {
  border-right: 0;
}

.md-ent-trust__label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink, #0b1418);
}

.md-ent-trust__text {
  font-size: 13px;
  line-height: 1.5;
  color: #5c6d73;
}

/* ── Sections ── */
.md-ent-section {
  padding: 56px 0;
}

.md-ent-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.md-ent-section__copy h2 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink, #0b1418);
  line-height: 1.05;
}

.md-ent-section__copy p {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.5;
  color: #5c6d73;
}

.md-ent-section__link {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #0b8796;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.md-ent-section__link:hover {
  color: #075b66;
}

/* ── Category tiles (no numbered list) ── */
.md-ent-cats {
  background: #eef1f0;
}

.md-ent-cats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.md-ent-cat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line, #c9d2d0);
  border-radius: var(--radius, 3px);
  background: #fff;
  color: var(--ink, #0b1418);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.md-ent-cat:hover {
  border-color: #0b8796;
  box-shadow: 0 10px 28px rgba(11, 20, 24, 0.08);
  color: #075b66;
}

.md-ent-cat__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f7f6;
}

.md-ent-cat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.md-ent-cat:hover .md-ent-cat__media img {
  transform: scale(1.04);
}

.md-ent-cat__name {
  display: block;
  padding: 14px 14px 16px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* ── Featured carousel wrap ── */
.md-ent-featured {
  padding: 40px 0 48px;
  background: #fff;
  border: 0;
}

.md-ent-featured .tc-home-product-carousel {
  margin: 0;
}

/* ── Product grid ── */
.md-ent-grid {
  background: #eef1f0;
}

/* ── Quote band ── */
.md-ent-quote.tc-enterprise-cta,
#oferta.tc-enterprise-cta {
  margin: 0;
  padding: clamp(48px, 7vw, 88px) 0;
  background: #0b1418;
  color: #fff;
  border: 0;
}

.md-ent-quote .tc-enterprise-cta-inner,
#oferta .tc-enterprise-cta-inner {
  max-width: 720px;
}

.md-ent-quote .tc-page-kicker,
#oferta .tc-page-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #8ed4dc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.md-ent-quote h2,
#oferta h2 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #fff;
}

.md-ent-quote p,
#oferta p {
  margin: 0 0 24px;
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.md-ent-quote .tc-btn-primary,
#oferta .tc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius, 3px);
  background: #0b8796;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
}

.md-ent-quote .tc-btn-primary:hover,
#oferta .tc-btn-primary:hover {
  background: #075b66;
  color: #fff;
}

/* ── Reveal motion ── */
.md-ent-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.md-ent-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .md-ent-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .md-ent-hero__media img {
    transform: none;
  }
}

/* Hero slider restored inside enterprise home */
.md-ent-home .md-ent-hero-slider {
  display: block;
  padding: 24px 0 0;
  background: #fff;
}

.md-ent-home .md-ent-hero-slider > .container {
  max-width: 1360px;
  padding: 0 24px;
}

.md-ent-home .tricotur-category-sidebar {
  display: none !important;
}

.md-ent-home .tricotur-showcase-row,
.md-ent-home .tricotur-showcase-row:has(.tricotur-hero-area--full) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1024px) {
  .md-ent-trust__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md-ent-trust__item:nth-child(2) {
    border-right: 0;
  }

  .md-ent-trust__item:nth-child(1),
  .md-ent-trust__item:nth-child(2) {
    border-bottom: 0;
  }
}

@media (max-width: 767px) {
  .md-ent-home > section > .container,
  .md-ent-home .md-ent-hero-slider > .container { padding-left: 16px; padding-right: 16px; }
  .md-ent-home .md-ent-hero-slider { padding-top: 16px; }
  .md-ent-featured { padding: 28px 0 32px; }
  .md-ent-section { padding: 36px 0; }
  .md-ent-hero {
    min-height: 560px;
    align-items: flex-end;
  }

  .md-ent-hero__inner {
    padding-bottom: 40px;
  }

  .md-ent-hero__brand {
    font-size: clamp(36px, 12vw, 56px);
  }

  .md-ent-hero__title {
    max-width: none;
  }

  .md-ent-trust__list {
    grid-template-columns: 1fr;
  }

  .md-ent-trust__item {
    border-right: 0;
    border-bottom: 0;
    padding: 0;
  }

  .md-ent-trust__item:last-child {
    border-bottom: 0;
  }

  .md-ent-section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .md-ent-cats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .md-ent-cat__name {
    font-size: 15px;
    padding: 12px;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .md-ent-cats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
