/*
Theme Name: EDMXP Engineering
Theme URI: https://edmxp.com
Author: EDMXP
Description: Lightweight WordPress theme for EDMXP precision EDM machining services.
Version: 1.4.4
License: GPL-2.0+
Text Domain: edmxp-theme
*/

:root {
  --edmxp-primary: #14213D;
  --edmxp-accent: #F97316;
  --edmxp-ink: #334155;
  --edmxp-muted: #64748B;
  --edmxp-line: #D8E0E4;
  --edmxp-bg: #f5f7fa;
  --edmxp-surface: #ffffff;
  --edmxp-nav-h: 66px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--edmxp-ink); background: var(--edmxp-surface); line-height: 1.6; }
a { color: var(--edmxp-primary); }
img { max-width: 100%; height: auto; }
.edmxp-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.edmxp-header { position: relative; z-index: 1000; background: var(--edmxp-header-bg, #07111d); color: var(--edmxp-header-text, #eef3f7); border-bottom: 1px solid rgba(255,255,255,.12); }
.edmxp-header-sticky { position: sticky; top: 0; }
.edmxp-header-inner { height: var(--edmxp-nav-h); max-width: var(--edmxp-header-max, 1180px); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.edmxp-logo a { text-decoration: none; color: var(--edmxp-header-text, #eef3f7); font-weight: 900; font-size: 21px; }
.edmxp-logo .custom-logo-link, .edmxp-default-logo-link { display: flex; align-items: center; }
.edmxp-logo .custom-logo, .edmxp-default-logo { display: block; width: auto; max-width: 225px; max-height: 46px; object-fit: contain; }
.edmxp-wordmark { letter-spacing: .08em; }
.edmxp-nav-menu { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.edmxp-nav-menu a { text-decoration: none; display: block; padding: 10px 12px; border-radius: var(--edmxp-button-r, 6px); color: var(--edmxp-header-text, #eef3f7); font-weight: 700; font-size: 14px; }
.edmxp-nav-menu a:hover { background: rgba(255,255,255,.1); color: #fff; }
.edmxp-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--edmxp-button-r, 6px); background: var(--edmxp-accent); color: #fff; text-decoration: none; font-weight: 800; padding: 10px 16px; }
.edmxp-header-cta { background: var(--edmxp-cta-bg, #F97316); color: var(--edmxp-cta-text, #fff); white-space: nowrap; }
.edmxp-header-cta-compact { font-size: 13px; padding: 7px 12px; min-height: 34px; border-radius: 5px; }
.edmxp-header-cta-normal { font-size: 14px; padding: 10px 16px; }
.edmxp-main { min-height: 60vh; }
.edmxp-hero { padding: 58px 0 34px; background: linear-gradient(180deg, #f7fafc 0%, #fff 100%); border-bottom: 1px solid var(--edmxp-line); }
.edmxp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 34px; align-items: start; }
.edmxp-eyebrow { color: var(--edmxp-primary); font-weight: 900; text-transform: uppercase; font-size: 13px; margin: 0 0 8px; }
.edmxp-hero h1 { font-size: 46px; line-height: 1.08; margin: 0 0 16px; max-width: 780px; }
.edmxp-hero p { color: var(--edmxp-muted); font-size: 17px; max-width: 720px; }
.edmxp-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.edmxp-hero-image { width: 100%; max-height: 320px; object-fit: cover; border-radius: 8px; margin-bottom: 18px; }
.edmxp-home-hero-image { margin-bottom: 18px; }
.edmxp-home-hero-image img { display: block; width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--edmxp-card-r, 8px); }
.edmxp-module-image, .edmxp-gallery-image, .edmxp-home-card-image { overflow: hidden; border-radius: var(--edmxp-card-r, 8px); background: #dbe3e8; }
.edmxp-module-image img, .edmxp-gallery-image img, .edmxp-home-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.edmxp-band { padding: 42px 0; }
.edmxp-theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.edmxp-card { border: 1px solid var(--edmxp-border, var(--edmxp-line)); border-radius: var(--edmxp-card-r, 8px); padding: 20px; background: #fff; text-decoration: none; color: var(--edmxp-ink); }
.edmxp-card:hover { border-color: var(--edmxp-primary); }
.edmxp-card h2, .edmxp-card h3 { margin: 0 0 8px; line-height: 1.25; }
.edmxp-home-card-image { margin: -20px -20px 16px; width: calc(100% + 40px); border-width: 0 0 1px; border-radius: 8px 8px 0 0; }
.edmxp-about-image { margin-bottom: 24px; }
.edmxp-page { max-width: 860px; margin: 0 auto; padding: 44px 20px; }
.edmxp-page-title { font-size: 36px; line-height: 1.15; margin: 0 0 16px; }
.edmxp-post-card { border-bottom: 1px solid var(--edmxp-line); padding: 18px 0; }
.edmxp-footer { background: var(--edmxp-footer-bg, #07111d); color: var(--edmxp-footer-text, #d7e0e7); margin-top: 0; }
.edmxp-footer-inner { display: grid; grid-template-columns: minmax(300px, 1.35fr) minmax(155px, .75fr) minmax(250px, 1fr) minmax(250px, 1fr); column-gap: clamp(34px, 4vw, 64px); row-gap: 28px; padding: 38px 20px 36px; align-items: start; }
.edmxp-footer-inner > div { align-self: start; min-width: 0; }
.edmxp-footer p { margin: 0; max-width: 390px; color: rgba(215,224,231,.88); }
.edmxp-footer-logo { display: block; width: auto; max-width: 250px; max-height: 48px; object-fit: contain; margin: 0 0 12px; }
.edmxp-footer a { color: var(--edmxp-footer-text, #d7e0e7); display: block; text-decoration: none; padding: 4px 0; line-height: 1.45; }
.edmxp-footer a:hover { color: #fff; }
.edmxp-footer-capabilities a { color: var(--edmxp-accent); }
.edmxp-footer-capabilities a:hover { color: #ff9a4d; text-decoration: underline; text-underline-offset: 3px; }
.edmxp-footer span { display: block; padding: 4px 0; line-height: 1.45; }
.edmxp-footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; line-height: 1.25; letter-spacing: 0; }
.edmxp-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; text-align: center; }
.edmxp-footer-bottom > span { display: inline-block; padding: 0; }
.edmxp-footer-legal { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.edmxp-footer-legal a { display: inline-block; padding: 0; color: rgba(215,224,231,.88); }
.edmxp-footer-legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.edmxp-ham { display: none; }

body { background: var(--edmxp-body-bg, #f4f7f8); }
.edmxp-main { background: var(--edmxp-surface); }
.edmxp-home-hero { padding: 64px 0 48px; background: #eef3f5; }
.edmxp-home-hero .edmxp-hero-grid { grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); align-items: center; }
.edmxp-hero-copy h1 { max-width: 680px; }
.edmxp-text-link { display: inline-flex; align-items: center; color: var(--edmxp-primary); font-weight: 800; text-decoration: none; }
.edmxp-trust-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 24px 0 0; }
.edmxp-trust-points li { border-left: 3px solid var(--edmxp-accent); background: #fff; padding: 8px 11px; font-size: 13px; font-weight: 800; }
.edmxp-hero-visual { position: relative; }
.edmxp-hero-visual .edmxp-home-hero-image { margin: 0; max-height: 460px; }
.edmxp-quote-card { position: relative; width: min(410px, calc(100% - 32px)); margin: -86px 16px 0 auto; padding: 20px; background: #fff; border: 1px solid var(--edmxp-border, var(--edmxp-line)); border-top: 4px solid var(--edmxp-accent); border-radius: var(--edmxp-card-r, 8px); box-shadow: 0 18px 40px rgba(7,17,29,.16); }
.edmxp-quote-card h2 { font-size: 20px; margin: 0 0 8px; }
.edmxp-quote-card p, .edmxp-quote-card li { font-size: 14px; }
.edmxp-quote-card ul { margin: 10px 0 12px; padding-left: 20px; }
.edmxp-home-module { padding: 64px 0; }
.edmxp-band.edmxp-home-module { background: #f4f7f8; }
.edmxp-section-head { max-width: 760px; margin-bottom: 26px; }
.edmxp-section-head h2, .edmxp-home-module h2, .edmxp-final-cta h2 { margin: 0 0 10px; font-size: 32px; line-height: 1.2; }
.edmxp-section-head p { color: var(--edmxp-muted); }
.edmxp-process-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.edmxp-process-grid .edmxp-card { padding: 16px; }
.edmxp-process-grid .edmxp-home-card-image { margin: -16px -16px 16px; width: calc(100% + 32px); }
.edmxp-two-column { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.edmxp-module-intro { display: grid; gap: 14px; align-content: start; }
.edmxp-materials-image { margin-top: 8px; min-height: 260px; }
.edmxp-pill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.edmxp-pill-card { border-left: 3px solid var(--edmxp-primary); padding: 14px 16px; background: #fff; }
.edmxp-pill-card strong, .edmxp-pill-card span { display: block; }
.edmxp-pill-card span { color: var(--edmxp-muted); font-size: 14px; margin-top: 4px; }
.edmxp-compact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.edmxp-step-list { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--edmxp-border, var(--edmxp-line)); }
.edmxp-step-list li { padding: 20px 18px; border-right: 1px solid var(--edmxp-border, var(--edmxp-line)); }
.edmxp-step-list li:last-child { border-right: 0; }
.edmxp-step-list span { color: var(--edmxp-accent); font-weight: 900; font-size: 13px; }
.edmxp-step-list strong { display: block; margin: 8px 0; line-height: 1.3; }
.edmxp-step-list p { color: var(--edmxp-muted); font-size: 14px; margin: 0; }
.edmxp-trust-grid { display: grid; gap: 12px; }
.edmxp-trust-grid > div { border: 1px solid var(--edmxp-border, var(--edmxp-line)); border-left: 4px solid var(--edmxp-accent); padding: 15px 16px; background: #fff; }
.edmxp-trust-grid p { margin: 4px 0 0; color: var(--edmxp-muted); }
.edmxp-about-factory-module { background: #fff; }
.edmxp-about-factory-grid { align-items: center; }
.edmxp-factory-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 24px 0; }
.edmxp-factory-stats div { border: 1px solid var(--edmxp-border, var(--edmxp-line)); border-top: 3px solid var(--edmxp-accent); border-radius: var(--edmxp-card-r, 8px); padding: 14px; background: #f8fafb; }
.edmxp-factory-stats strong { display: block; color: var(--edmxp-primary); font-size: 22px; line-height: 1.15; }
.edmxp-factory-stats span { display: block; color: var(--edmxp-muted); font-size: 12px; font-weight: 800; margin-top: 5px; }
.edmxp-about-points { margin: 0 0 18px; }
.edmxp-about-module-image { min-height: 410px; box-shadow: 0 18px 40px rgba(7,17,29,.16); }
.edmxp-feature-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: 42px; align-items: center; }
.edmxp-feature-row .edmxp-feature-image { margin: 0; }
.edmxp-feature-image { min-height: 330px; }
.edmxp-check-list { padding-left: 20px; display: grid; gap: 8px; }
.edmxp-gallery-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.edmxp-gallery-row .edmxp-gallery-image { margin: 0; }
.edmxp-gallery-image { aspect-ratio: 4 / 3; }
.edmxp-large-card { padding: 20px; }
.edmxp-final-cta { background: var(--edmxp-dark, #07111d); color: #fff; padding: 58px 0; text-align: center; }
.edmxp-final-cta p { color: #d3dde4; max-width: 720px; margin: 0 auto 20px; }
.edmxp-final-cta .edmxp-eyebrow { color: #efb3a8; }
.edmxp-final-cta + .edmxp-footer { margin-top: 0; }
.edmxp-page .wp-block-button__link { background: var(--edmxp-accent); border-radius: var(--edmxp-button-r, 6px); }
.edmxp-whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 1200; width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 14px 28px rgba(7,17,29,.22); transition: transform .16s ease, box-shadow .16s ease; }
.edmxp-whatsapp-float:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(7,17,29,.28); }
.edmxp-whatsapp-float svg { width: 31px; height: 31px; fill: currentColor; }
@media (max-width: 900px) {
  .edmxp-hero-grid, .edmxp-home-hero .edmxp-hero-grid, .edmxp-theme-grid, .edmxp-footer-inner, .edmxp-two-column, .edmxp-feature-row { grid-template-columns: 1fr; }
  .edmxp-nav { display: none; }
  .edmxp-hero h1 { font-size: 34px; }
  .edmxp-process-grid, .edmxp-compact-grid, .edmxp-gallery-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edmxp-step-list { grid-template-columns: 1fr; border-top: 0; }
  .edmxp-step-list li { border-right: 0; border-top: 1px solid var(--edmxp-border, var(--edmxp-line)); }
  .edmxp-quote-card { margin-top: -46px; }
  .edmxp-factory-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edmxp-about-module-image, .edmxp-feature-image, .edmxp-materials-image { min-height: 260px; }
}
@media (max-width: 600px) {
  .edmxp-header-cta { display: none; }
  .edmxp-logo .custom-logo, .edmxp-default-logo { max-width: 185px; max-height: 40px; }
  .edmxp-footer-logo { max-width: 220px; max-height: 44px; }
  .edmxp-process-grid, .edmxp-compact-grid, .edmxp-gallery-row, .edmxp-pill-grid, .edmxp-factory-stats { grid-template-columns: 1fr; }
  .edmxp-home-module { padding: 44px 0; }
  .edmxp-section-head h2, .edmxp-home-module h2, .edmxp-final-cta h2 { font-size: 27px; }
  .edmxp-quote-card { width: 100%; margin: 14px 0 0; }
  .edmxp-footer-inner { gap: 22px; padding-top: 30px; padding-bottom: 30px; }
  .edmxp-whatsapp-float { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .edmxp-whatsapp-float svg { width: 27px; height: 27px; }
}

/* Patch 4J-Lite: EDM RFQ Floating Helper */
.edmxp-rfq-helper { position: fixed; left: 22px; bottom: 22px; z-index: 1190; font-family: inherit; }
.edmxp-rfq-helper-toggle { border: 0; border-radius: 999px; padding: 12px 18px; background: var(--edmxp-accent,#F97316); color: #fff; font-weight: 800; box-shadow: 0 14px 28px rgba(7,17,29,.22); cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.edmxp-rfq-helper-toggle:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(7,17,29,.28); }
.edmxp-rfq-helper-panel { position: absolute; left: 0; bottom: 58px; width: min(460px, calc(100vw - 36px)); max-height: 76vh; overflow: auto; background: #fff; color: var(--edmxp-dark,#07111d); border: 1px solid rgba(7,17,29,.12); border-radius: 16px; box-shadow: 0 24px 60px rgba(7,17,29,.28); padding: 18px; }
.edmxp-rfq-helper-head { display: flex; align-items: flex-start; gap: 14px; justify-content: space-between; margin-bottom: 12px; }
.edmxp-rfq-helper-head h2 { margin: 0 0 5px; font-size: 19px; line-height: 1.2; }
.edmxp-rfq-helper-head p { margin: 0; color: #5b6570; font-size: 13px; line-height: 1.45; }
.edmxp-rfq-helper-close { flex: 0 0 auto; border: 0; background: #eef3f7; color: #17212b; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; }
.edmxp-rfq-helper-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.edmxp-rfq-helper label { display: grid; gap: 5px; font-size: 12px; font-weight: 700; color: #243241; }
.edmxp-rfq-helper select, .edmxp-rfq-helper input, .edmxp-rfq-helper textarea { width: 100%; border: 1px solid #d8e0e4; border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 13px; background: #fff; color: #17212b; }
.edmxp-rfq-helper-wide { grid-column: 1 / -1; }
.edmxp-rfq-helper-notes { margin-top: 10px; }
.edmxp-rfq-helper-prepare { width: 100%; margin-top: 12px; border: 0; border-radius: 10px; padding: 11px 14px; background: var(--edmxp-primary,#14213D); color: #fff; font-weight: 800; cursor: pointer; }
.edmxp-rfq-helper-status { min-height: 18px; margin: 9px 0 0; color: #4b5a66; font-size: 12px; }
@media (max-width: 600px) {
  .edmxp-rfq-helper { left: 12px; bottom: 12px; }
  .edmxp-rfq-helper-toggle { padding: 10px 13px; font-size: 13px; }
  .edmxp-rfq-helper-panel { bottom: 50px; width: calc(100vw - 24px); max-height: 72vh; padding: 14px; border-radius: 14px; }
  .edmxp-rfq-helper-grid { grid-template-columns: 1fr; }
  .edmxp-rfq-helper-head h2 { font-size: 17px; }
}
