/* Shared visual and responsive system for all WordPress pages. */
:root {
  --ep-site-bg: #0d1b2a;
  --ep-site-panel: #172132;
  --ep-site-panel-alt: #121b29;
  --ep-site-ink: #f5f8fd;
  --ep-site-muted: #a9b7cd;
  --ep-site-blue: #4dabf7;
  --ep-site-blue-soft: #7ec3ff;
  --ep-site-gold: #d3b67f;
  --ep-site-line: rgba(126, 195, 255, .18);
  --ep-site-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body,
button,
input,
select,
textarea {
  font-family: var(--ep-site-font) !important;
}

body {
  background: var(--ep-site-bg);
  color: var(--ep-site-ink);
  line-height: 1.6;
  overflow-x: clip;
}

.site-header,
.ast-primary-header,
.main-header,
.site-footer {
  background-color: var(--ep-site-bg) !important;
  border-color: var(--ep-site-line) !important;
}

.site-header .sub-menu,
.ast-primary-header .sub-menu,
.main-header .sub-menu {
  background-color: var(--ep-site-panel) !important;
  border-color: var(--ep-site-line) !important;
}

.site-content > .ast-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(16px, 2.4vw, 24px) !important;
}

.site-content :where(h1, h2, h3, h4, h5, h6) {
  color: var(--ep-site-ink) !important;
  font-family: var(--ep-site-font) !important;
  font-weight: 700;
  letter-spacing: normal !important;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.site-content :where(p, li, address, label, figcaption) {
  overflow-wrap: anywhere;
}

.site-content :where(img, video, iframe, svg) {
  max-width: 100%;
}

.site-content :where(input, select, textarea, button) {
  max-width: 100%;
  box-sizing: border-box;
}

.site-content :where(input, select, textarea) {
  min-width: 0;
  font-size: 16px;
}

.site-content :where(table) {
  max-width: 100%;
}

.site-content :where(pre, code) {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body.tax-machine-category,
.machine-archive-container,
.machine-category-page,
.single-machine,
.production-line-page,
.single-production-line,
.contact-page {
  background: var(--ep-site-bg);
  color: var(--ep-site-ink);
}

/* Reuse the same dark blue palette on page families that had separate themes. */
.production-line-page,
.single-production-line {
  --pl-navy: var(--ep-site-bg);
  --pl-navy-2: var(--ep-site-panel-alt);
  --pl-panel: var(--ep-site-panel);
  --pl-border: var(--ep-site-line);
  --pl-teal: var(--ep-site-blue);
  --pl-teal-dark: #278bd4;
  --pl-gold: var(--ep-site-gold);
  --pl-text: var(--ep-site-ink);
  --pl-text-dim: var(--ep-site-muted);
  --pl-cerulean: var(--ep-site-blue);
  --pl-cerulean-dark: #278bd4;
  --pl-cerulean-light: var(--ep-site-blue-soft);
}

.single-machine :where(h1, h2, h3, h4),
.production-line-page :where(h1, h2, h3, h4),
.single-production-line :where(h1, h2, h3, h4),
.machine-category-page :where(h1, h2, h3, h4),
.machine-archive-container :where(h1, h2, h3, h4) {
  font-family: var(--ep-site-font);
  letter-spacing: normal;
}

.single-machine .machine-title,
.single-machine .machine-subtitle {
  color: var(--ep-site-ink) !important;
  font-family: var(--ep-site-font) !important;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}

.single-machine .machine-subtitle {
  color: var(--ep-site-muted) !important;
  font-size: clamp(1.05rem, 2vw, 1.2rem) !important;
  line-height: 1.5;
}

.single-machine .breadcrumb-wrapper,
.single-machine .machine-hero-meta,
.single-machine .machine-specs,
.single-machine .machine-cta-block,
.single-machine .faq-item,
.single-machine .machine-related-card,
.single-machine .machine-works-with-item,
.single-machine .trust-card,
.single-machine .machine-faq-item,
.single-machine .spec-main-table,
.single-machine .brand-card {
  background-color: var(--ep-site-panel);
  border-color: var(--ep-site-line);
}

.single-machine .contact-block-wrapper {
  background: var(--ep-site-bg);
}

.single-machine .contact-block,
.single-machine .machine-related-thumb,
.single-machine .machine-faq-question,
.single-machine .machine-faq-answer {
  background-color: var(--ep-site-panel-alt);
  color: var(--ep-site-ink);
}

.single-machine .machine-spec-hub {
  background: var(--ep-site-bg);
}

.single-machine .spec-divider,
.single-machine .btn-download {
  background: var(--ep-site-blue);
}

.single-machine .material-row {
  background: rgba(77, 171, 247, .08);
}

.single-machine .btn-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.single-machine .machine-grid .machine-card {
  background: var(--ep-site-panel);
  border: 1px solid var(--ep-site-line);
  color: var(--ep-site-ink);
}

.single-machine .machine-grid .machine-card .cta-button {
  background: var(--ep-site-blue);
  color: #071d34 !important;
}

.single-machine .machine-related h2,
.single-machine .machine-related-title,
.single-machine .machine-works-with-label,
.single-machine .spec-title {
  color: var(--ep-site-ink) !important;
}

.single-machine :where(.breadcrumb-wrapper a, .contact-block a, .machine-related-card a:hover .machine-related-title, .machine-works-with-item:hover .machine-works-with-label, .machine-faq-answer a) {
  color: var(--ep-site-blue-soft);
}

.single-machine .machine-works-with-thumb {
  background: linear-gradient(135deg, var(--ep-site-panel), var(--ep-site-bg));
}

.single-machine .machine-spec-hub {
  padding-inline: 0;
}

.single-machine .data-table :where(th, td),
.single-machine .trust-content,
.single-machine .param-value,
.single-machine .card-label {
  color: var(--ep-site-muted);
}

.single-machine .download-card {
  background: linear-gradient(135deg, rgba(77, 171, 247, .14), var(--ep-site-panel));
  border-color: var(--ep-site-line);
}

.single-machine .download-card :where(h3, p) {
  color: var(--ep-site-ink);
}

.contact-page {
  min-height: 0;
  padding-block: clamp(24px, 4vw, 48px);
}

.contact-container {
  width: 100%;
  max-width: 1200px;
  padding-inline: 0;
}

.contact-page :where(.contact-info, .contact-form) {
  background: var(--ep-site-panel);
  color: var(--ep-site-ink);
}

.contact-page .contact-item {
  background: var(--ep-site-panel-alt);
}

.contact-page :where(.contact-title, .info-title, .form-title, .map-title) {
  font-family: var(--ep-site-font);
}

.eppm-home {
  --eppm-bg: var(--ep-site-bg);
  --eppm-panel: var(--ep-site-panel);
  --eppm-panel-2: var(--ep-site-panel-alt);
  --eppm-panel-soft: #1b293b;
  --eppm-ink: var(--ep-site-ink);
  --eppm-muted: var(--ep-site-muted);
  --eppm-line: var(--ep-site-line);
  --eppm-navy: #102844;
  --eppm-navy-deep: var(--ep-site-bg);
  --eppm-on-navy: var(--ep-site-ink);
  --eppm-on-navy-muted: var(--ep-site-muted);
  --eppm-accent: var(--ep-site-blue-soft);
  --eppm-accent-strong: var(--ep-site-blue);
  --eppm-focus: var(--ep-site-blue);
  --eppm-font-display: var(--ep-site-font);
  --eppm-font-body: var(--ep-site-font);
}

.eppm-home :where(h1, h2, h3, h4) {
  font-family: var(--ep-site-font) !important;
  letter-spacing: normal !important;
}

.eppm-home .eppm-nameplate b {
  font-family: var(--ep-site-font) !important;
}

.eppm-home .eppm-wrap {
  width: min(1160px, calc(100% - 48px));
}

.machines-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 0;
}

.machines-page-header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 24px;
}

.machines-page-header p,
.machines-empty {
  color: var(--ep-site-muted);
}

.machines-category-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ep-site-line);
  border-radius: 12px;
  background: var(--ep-site-panel);
  color: var(--ep-site-ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.machines-category-card a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.machines-category-card img,
.machines-category-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-items: center;
  background: var(--ep-site-panel-alt);
  color: var(--ep-site-blue-soft);
  object-fit: cover;
  font-size: 2rem;
  font-weight: 700;
}

.machines-category-card h2,
.machines-category-card p {
  margin: 0;
  padding-inline: 18px;
}

.machines-category-card h2 {
  padding-top: 16px;
  font-size: 1.2rem;
}

.machines-category-card p {
  padding-top: 8px;
  padding-bottom: 18px;
  color: var(--ep-site-muted);
}

.machine-category-page .container,
.machine-archive-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.machine-category-page .contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 24px;
}

.machine-category-page .contact-buttons .btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ep-site-blue);
  color: #071d34;
  font-weight: 700;
  text-decoration: none;
}

.machine-category-page .contact-buttons .whatsapp {
  background: #25d366;
  color: #fff;
}

@media (max-width: 680px) {
  .site-content > .ast-container {
    padding-inline: 16px !important;
  }

  .site-content :where(h1) {
    font-size: clamp(1.8rem, 7vw, 2.35rem) !important;
    line-height: 1.2 !important;
  }

  .site-content :where(h2) {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem) !important;
    line-height: 1.25 !important;
  }

  .site-content :where(h3) {
    font-size: clamp(1.1rem, 4.7vw, 1.35rem) !important;
    line-height: 1.3 !important;
  }

  .eppm-home .eppm-wrap {
    width: calc(100% - 32px);
  }

  .eppm-home .eppm-hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.08;
  }

  .eppm-home h2,
  .eppm-home .eppm-line-body h3,
  .eppm-home .eppm-pane h3 {
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.2;
  }

  .eppm-home .eppm-sec {
    padding-block: 48px;
  }

  .contact-page {
    padding-block: 24px;
  }

  .contact-container {
    padding-inline: 0;
  }

  .contact-page :where(.contact-info, .contact-form) {
    padding: 16px;
  }

  .contact-page .contact-item {
    flex-direction: row;
    gap: 12px;
    padding: 12px;
  }

  .contact-page .contact-icon {
    align-self: flex-start;
  }

  .production-line-page .container,
  .single-production-line section,
  .single-machine .machine-related,
  .single-machine .machine-works-with,
  .single-machine .trust-grid,
  .single-machine .spec-container,
  .single-machine .machine-faq {
    padding-inline: 0;
  }

  .single-machine section {
    margin-bottom: 32px;
  }

  .single-machine .machine-title-block,
  .single-machine .machine-hero {
    padding-inline: 0;
  }

  .single-machine .trust-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .machine-category-page .contact-buttons > .btn {
    flex: 1 1 140px;
  }

  .machines-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
