/*
Theme Name: ORM Compressor
Author: ORM Compressor
Description: Lightweight B2B catalogue theme for ORM industrial air compressors.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: orm-compressor
*/

:root {
  --orm-ink: #12283b;
  --orm-ink-soft: #243f55;
  --orm-blue: #0d5f9c;
  --orm-blue-dark: #084571;
  --orm-cyan: #18a3c7;
  --orm-sky: #edf6fb;
  --orm-paper: #ffffff;
  --orm-mist: #f4f7f9;
  --orm-line: #d7e1e8;
  --orm-muted: #647886;
  --orm-success: #18764e;
  --orm-radius: 12px;
  --orm-radius-sm: 7px;
  --orm-shadow: 0 18px 48px rgba(18, 40, 59, .10);
  --orm-shadow-soft: 0 8px 24px rgba(18, 40, 59, .07);
  --orm-container: 1180px;
  --orm-space: clamp(64px, 8vw, 112px);
  --orm-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--orm-ink); background: var(--orm-paper); font-family: var(--orm-font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.admin-bar .orm-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.orm-container { width: min(calc(100% - 48px), var(--orm-container)); margin-inline: auto; }
.orm-topbar { color: #dceaf3; background: var(--orm-ink); font-size: .76rem; letter-spacing: .02em; }
.orm-topbar-inner { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; }
.orm-topbar-note { color: #a9c3d3; }

.orm-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(215,225,232,.9); background: rgba(255,255,255,.95); backdrop-filter: blur(14px); }
.orm-header-inner { display: flex; align-items: center; gap: 26px; min-height: 76px; }
.orm-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--orm-ink); font-weight: 900; letter-spacing: .08em; font-size: .85rem; }
.orm-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: white; border-radius: 8px; background: linear-gradient(135deg, var(--orm-blue-dark), var(--orm-cyan)); font-size: .75rem; letter-spacing: -.04em; }
.orm-brand-name { white-space: nowrap; }
.orm-nav { flex: 1 1 auto; }
.orm-nav ul, .orm-fallback-menu { display: flex; align-items: center; justify-content: flex-end; gap: clamp(13px, 2vw, 26px); margin: 0; padding: 0; list-style: none; }
.orm-nav a, .orm-fallback-menu a { display: inline-flex; align-items: center; min-height: 44px; color: var(--orm-ink-soft); font-size: .87rem; font-weight: 750; }
.orm-nav a:hover, .orm-fallback-menu a:hover { color: var(--orm-blue); }
.orm-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 7px; font-size: .88rem; font-weight: 850; line-height: 1.2; transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.orm-button:hover { transform: translateY(-2px); }
.orm-button-primary { color: #fff; background: var(--orm-blue); box-shadow: 0 8px 18px rgba(13,95,156,.18); }
.orm-button-primary:hover { color: #fff; background: var(--orm-blue-dark); }
.orm-button-secondary { color: var(--orm-blue-dark); border-color: #9fb8c8; background: #fff; }
.orm-button-secondary:hover { color: var(--orm-blue-dark); border-color: var(--orm-blue); background: var(--orm-sky); }
.orm-mobile-toggle { display: none; margin-left: auto; padding: 8px; border: 0; background: transparent; cursor: pointer; }
.orm-mobile-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--orm-ink); }

.orm-hero { position: relative; overflow: hidden; padding: clamp(70px, 9vw, 128px) 0 84px; background: linear-gradient(115deg, #f5faff 0%, #fff 55%, #eaf5fa 100%); }
.orm-hero::after { position: absolute; right: -120px; bottom: -180px; width: 520px; height: 520px; border: 1px solid rgba(24,163,199,.12); border-radius: 50%; content: ""; }
.orm-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .85fr); align-items: center; gap: clamp(40px, 7vw, 96px); }
.orm-eyebrow { display: block; margin-bottom: 13px; color: var(--orm-blue); font-size: .73rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.orm-hero h1, .orm-page-hero h1 { max-width: 760px; margin: 0 0 22px; color: var(--orm-ink); font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.04; letter-spacing: -.055em; }
.orm-hero p, .orm-page-hero p { max-width: 680px; margin: 0; color: var(--orm-muted); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.orm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.orm-hero-image { position: relative; padding: 25px; border: 1px solid rgba(13,95,156,.12); border-radius: 18px; background: rgba(255,255,255,.72); box-shadow: var(--orm-shadow); }
.orm-hero-image img { width: 100%; aspect-ratio: 1.12; object-fit: contain; mix-blend-mode: multiply; }
.orm-proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--orm-line); border-bottom: 1px solid var(--orm-line); background: var(--orm-paper); }
.orm-proof-item { display: flex; gap: 13px; min-height: 105px; padding: 22px clamp(18px, 3vw, 34px); border-right: 1px solid var(--orm-line); }
.orm-proof-item:last-child { border-right: 0; }
.orm-proof-item strong, .orm-proof-item span:last-child { display: block; }
.orm-proof-item strong { margin-bottom: 4px; font-size: .92rem; }
.orm-proof-item span:last-child { color: var(--orm-muted); font-size: .78rem; line-height: 1.45; }
.orm-icon { display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; color: var(--orm-blue); border: 1px solid #b6d2e1; border-radius: 50%; background: var(--orm-sky); font-weight: 900; }

.orm-section { padding: var(--orm-space) 0; }
.orm-section-alt { background: var(--orm-mist); }
.orm-section-dark { color: white; background: var(--orm-ink); }
.orm-section-dark h2, .orm-section-dark h3 { color: white; }
.orm-section-dark p { color: #b9cedb; }
.orm-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; margin-bottom: 34px; }
.orm-section-heading > div { max-width: 680px; }
.orm-section-heading > p { max-width: 410px; margin: 0; color: var(--orm-muted); font-size: .92rem; }
h2, h3 { margin-top: 0; line-height: 1.15; letter-spacing: -.035em; }
h2 { margin-bottom: 13px; font-size: clamp(1.8rem, 3vw, 3rem); }
h3 { margin-bottom: 10px; font-size: 1.18rem; }
.orm-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.orm-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.orm-card, .orm-route-card { display: block; border: 1px solid var(--orm-line); border-radius: var(--orm-radius); background: var(--orm-paper); box-shadow: var(--orm-shadow-soft); }
.orm-card { padding: 25px; }
.orm-card > img { width: calc(100% + 50px); max-width: none; margin: -25px -25px 22px; border-radius: var(--orm-radius) var(--orm-radius) 0 0; aspect-ratio: 1.4; object-fit: cover; }
.orm-card p, .orm-route-card p { margin: 0; color: var(--orm-muted); font-size: .91rem; }
.orm-card-link { overflow: hidden; padding: 0; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.orm-card-link:hover { border-color: #9fc5d9; box-shadow: var(--orm-shadow); transform: translateY(-4px); }
.orm-card-link img { margin: 0; transition: transform .25s ease; }
.orm-card-link:hover img { transform: scale(1.025); }
.orm-card-link-content { padding: 22px 24px 25px; }
.orm-card-link-content .orm-eyebrow { margin-bottom: 9px; }
.orm-arrow { display: inline-flex; margin-top: 17px; color: var(--orm-blue); font-size: .84rem; font-weight: 850; }
.orm-route-card { min-height: 230px; padding: 27px; border-top: 3px solid var(--orm-blue); transition: transform .18s ease, border-color .18s ease; }
.orm-route-card:hover { border-color: var(--orm-cyan); transform: translateY(-3px); }
.orm-route-card h3 { font-size: 1.42rem; }
.orm-page-hero { padding: 70px 0 62px; border-bottom: 1px solid var(--orm-line); background: linear-gradient(120deg, #f5faff, #fff); }
.orm-page-hero h1 { max-width: 880px; font-size: clamp(2.25rem, 4.6vw, 4.3rem); }
.orm-breadcrumbs { color: var(--orm-muted); font-size: .78rem; }
.orm-breadcrumbs .orm-container { display: flex; gap: 10px; padding-top: 18px; }
.orm-breadcrumbs a { color: var(--orm-blue); font-weight: 750; }
.orm-muted { color: var(--orm-muted); }
.orm-callout { margin-top: 24px; padding: 17px 20px; border-left: 3px solid var(--orm-cyan); background: var(--orm-sky); }
.orm-callout p { margin: 0; color: var(--orm-ink-soft); font-size: .88rem; }

.orm-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; padding: 15px 18px; border: 1px solid var(--orm-line); background: var(--orm-mist); }
.orm-filter-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.orm-filter-links a { padding: 8px 12px; color: var(--orm-blue-dark); border: 1px solid #b9ceda; border-radius: 999px; background: #fff; font-size: .78rem; font-weight: 800; }
.orm-filter-links a:hover, .orm-filter-links a.is-active { color: #fff; border-color: var(--orm-blue); background: var(--orm-blue); }
.orm-product-card { overflow: hidden; border: 1px solid var(--orm-line); border-radius: var(--orm-radius); background: #fff; box-shadow: var(--orm-shadow-soft); }
.orm-product-card > img { width: 100%; aspect-ratio: 1.28; object-fit: contain; background: #f8fbfd; }
.orm-product-body { padding: 23px; }
.orm-product-body p { min-height: 50px; margin: 0 0 18px; color: var(--orm-muted); font-size: .89rem; }
.orm-product-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0; }
.orm-product-meta div { padding: 13px; border: 1px solid var(--orm-line); background: var(--orm-mist); }
.orm-product-meta small, .orm-product-meta strong { display: block; }
.orm-product-meta small { margin-bottom: 3px; color: var(--orm-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.orm-product-meta strong { font-size: .92rem; }
.orm-single-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(35px, 7vw, 90px); align-items: start; }
.orm-single-image { position: sticky; top: 112px; padding: 30px; border: 1px solid var(--orm-line); background: #f8fbfd; }
.orm-single-image img { width: 100%; aspect-ratio: 1.1; object-fit: contain; mix-blend-mode: multiply; }
.orm-single-intro { color: var(--orm-muted); font-size: 1.05rem; }
.orm-spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--orm-line); background: #fff; }
.orm-spec-table th, .orm-spec-table td { padding: 15px 17px; border-bottom: 1px solid var(--orm-line); text-align: left; vertical-align: top; }
.orm-spec-table th { width: 34%; color: var(--orm-ink-soft); background: var(--orm-mist); font-size: .82rem; }
.orm-spec-table td { color: var(--orm-muted); }
.orm-detail-nav { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 30px; padding: 13px 0; border-top: 1px solid var(--orm-line); border-bottom: 1px solid var(--orm-line); }
.orm-detail-nav a { color: var(--orm-blue); font-size: .8rem; font-weight: 850; }

.orm-contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
.orm-contact-points { display: grid; gap: 12px; margin-top: 24px; }
.orm-contact-point { padding: 16px 18px; border-left: 3px solid var(--orm-blue); background: #fff; }
.orm-contact-point strong, .orm-contact-point span { display: block; }
.orm-contact-point strong { margin-bottom: 3px; }
.orm-contact-point span { color: var(--orm-muted); font-size: .87rem; }
.orm-form-wrap { padding: 28px; border: 1px solid var(--orm-line); border-radius: var(--orm-radius); background: #fff; box-shadow: var(--orm-shadow); }
.orm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.orm-form-grid .orm-full { grid-column: 1 / -1; }
.orm-form-wrap label { display: grid; gap: 6px; color: var(--orm-ink-soft); font-size: .78rem; font-weight: 800; }
.orm-form-wrap input, .orm-form-wrap select, .orm-form-wrap textarea { width: 100%; padding: 12px 13px; color: var(--orm-ink); border: 1px solid #b8cbd6; border-radius: var(--orm-radius-sm); background: #fff; outline: none; }
.orm-form-wrap input:focus, .orm-form-wrap select:focus, .orm-form-wrap textarea:focus { border-color: var(--orm-blue); box-shadow: 0 0 0 3px rgba(13,95,156,.12); }
.orm-form-wrap textarea { min-height: 120px; resize: vertical; }
.orm-form-check { display: flex !important; grid-template-columns: auto 1fr; flex-direction: row; align-items: flex-start; gap: 8px !important; margin: 17px 0; color: var(--orm-muted) !important; font-weight: 500 !important; }
.orm-form-check input { width: auto; margin-top: 5px; }
.orm-form-status { margin-bottom: 18px; padding: 13px 15px; color: var(--orm-success); border: 1px solid #b9e1cd; border-radius: 7px; background: #eefaf4; font-size: .88rem; }
.orm-form-status-error { color: #9d372d; border-color: #efc2bb; background: #fff4f1; }
.orm-form button { width: 100%; border: 0; cursor: pointer; }

details { padding: 20px 0; border-bottom: 1px solid var(--orm-line); }
details:first-child { padding-top: 0; }
summary { cursor: pointer; color: var(--orm-ink); font-weight: 850; }
details p { margin: 10px 0 0; color: var(--orm-muted); }
.entry-content { max-width: 780px; }
.entry-content > *:first-child { margin-top: 0; }

.orm-footer { color: #bbced9; background: var(--orm-ink); }
.orm-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding: 58px 0 48px; }
.orm-footer h3 { margin-bottom: 15px; color: #fff; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; }
.orm-footer p { max-width: 360px; margin: 18px 0 0; font-size: .86rem; }
.orm-footer a { display: block; width: fit-content; margin: 8px 0; color: #d8e6ed; font-size: .86rem; }
.orm-footer a:hover { color: #fff; }
.orm-brand-footer { color: #fff; }
.orm-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.15); color: #93adbb; font-size: .73rem; }
.orm-mobile-cta { display: none; }

@media (max-width: 980px) {
  .orm-nav ul, .orm-fallback-menu { gap: 12px; }
  .orm-header-inner { gap: 14px; }
  .orm-header-cta { padding-inline: 14px; font-size: .76rem; }
  .orm-proof-strip { grid-template-columns: repeat(2, 1fr); }
  .orm-proof-item:nth-child(2) { border-right: 0; }
  .orm-proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--orm-line); }
  .orm-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { padding-bottom: 66px; }
  body.admin-bar .orm-header { top: 46px; }
  .orm-container { width: min(calc(100% - 34px), var(--orm-container)); }
  .orm-topbar-note { display: none; }
  .orm-topbar-inner { justify-content: center; text-align: center; }
  .orm-header-inner { min-height: 68px; }
  .orm-mobile-toggle { display: block; }
  .orm-header-cta { display: none; }
  .orm-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 12px 17px 18px; border-bottom: 1px solid var(--orm-line); background: #fff; box-shadow: var(--orm-shadow); }
  .orm-nav.is-open { display: block; }
  .orm-nav ul, .orm-fallback-menu { display: grid; justify-content: stretch; gap: 0; }
  .orm-nav a, .orm-fallback-menu a { display: block; padding: 9px 0; border-bottom: 1px solid var(--orm-line); }
  .orm-hero { padding: 60px 0 55px; }
  .orm-hero-grid, .orm-single-grid, .orm-contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .orm-hero h1, .orm-page-hero h1 { font-size: clamp(2.15rem, 11vw, 3.35rem); }
  .orm-hero-image { order: -1; padding: 15px; }
  .orm-proof-strip { grid-template-columns: 1fr; }
  .orm-proof-item { min-height: 82px; border-right: 0; border-bottom: 1px solid var(--orm-line); }
  .orm-proof-item:last-child { border-bottom: 0; }
  .orm-section-heading { display: block; }
  .orm-section-heading > p { margin-top: 13px; }
  .orm-grid-3, .orm-grid-4 { grid-template-columns: 1fr; }
  .orm-grid-4 { gap: 12px; }
  .orm-filter-bar { display: block; }
  .orm-filter-bar .orm-button { width: 100%; margin-top: 14px; }
  .orm-single-image { position: static; padding: 18px; }
  .orm-form-grid { grid-template-columns: 1fr; }
  .orm-form-grid .orm-full { grid-column: auto; }
  .orm-form-wrap { padding: 20px; }
  .orm-footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 35px; }
  .orm-footer-bottom { display: block; }
  .orm-footer-bottom span { display: block; margin-top: 5px; }
  .orm-mobile-cta { position: fixed; right: 0; bottom: 0; left: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-top: 1px solid rgba(255,255,255,.2); background: rgba(18,40,59,.97); }
  .orm-mobile-cta .orm-button { min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
