/*
Theme Name: OMRON Ukraine – FINAL
Theme URI: https://omron.com.ua/
Description: Lightweight Ukrainian corporate homepage starter for GeneratePress.
Author: OMRON Ukraine (local development)
Template: generatepress
Version: 1.0.6
Text Domain: omron-ukraine
*/

:root {
  --omron-blue: #0875d1;
  --omron-blue-dark: #063b68;
  --omron-navy: #082f52;
  --omron-pale: #f2f8fd;
  --omron-text: #163b5f;
  --omron-muted: #607d98;
  --omron-border: #d9e7f2;
  --omron-white: #fff;
}

body {
  color: var(--omron-text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}
.site-header { border-bottom: 1px solid var(--omron-border); }
.site-branding .main-title a { color: var(--omron-blue); font-weight: 800; letter-spacing: -.04em; }
/* Hide the default WordPress tagline; it was appearing as a stray second “Головна” under the menu. */
.site-description { display: none !important; }

/* Keep the GeneratePress header and navigation visually tidy. */
.site-header .inside-header { padding-top: 22px; padding-bottom: 22px; }
.main-navigation .main-nav > ul > li > a { line-height: 56px; }
.main-navigation .main-nav ul li a { transition: color .18s ease, background-color .18s ease; }
.main-navigation, .main-navigation ul ul { background: #fff; }
.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items { color: var(--omron-navy); font-weight: 600; }
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--omron-blue); background: #f4f9ff; }
.site-content { max-width: none; }
body.home .site-content { padding: 0; }
body.home .content-area { width: 100%; }
body.home .site-main { margin: 0; }
body.home .inside-article { padding: 0; background: transparent; }
body.home .entry-header { display: none; }
.omron-wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.omron-hero {
  position: relative; overflow: hidden; color: white;
  background: radial-gradient(ellipse at 78% 35%, rgba(41,147,231,.75), transparent 38%),
              linear-gradient(115deg, #062f53 0%, #07558d 55%, #1684d0 100%);
  min-height: 410px; display: flex; align-items: center;
}
.omron-hero:after {
  content: ""; position: absolute; width: 430px; height: 430px; right: 7%; top: -10%;
  border: 1px solid rgba(255,255,255,.22); border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255,255,255,.04), 0 0 0 82px rgba(255,255,255,.035);
}
.omron-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 35px; align-items: center; padding-block: 64px; }
.omron-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: #c8e8ff; margin-bottom: 15px; }
.omron-hero h1 { color: #fff; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; margin: 0 0 20px; max-width: 640px; letter-spacing: -.035em; }
.omron-hero p { font-size: 17px; line-height: 1.65; color: #e5f4ff; max-width: 560px; margin-bottom: 27px; }
.omron-button { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 4px; background: var(--omron-blue); color: white !important; font-weight: 700; text-decoration: none !important; transition: background .2s ease, transform .2s ease; }
.omron-button:hover { background: #0064b8; transform: translateY(-1px); }
.omron-button-outline { background: transparent; border: 1px solid var(--omron-blue); color: var(--omron-blue) !important; }
.omron-button-outline:hover { background: var(--omron-blue); color: #fff !important; }
.omron-hero-art { min-height: 260px; position: relative; display: flex; align-items: center; justify-content: center; }
.omron-robot-card { width: 100%; max-width: 430px; aspect-ratio: 1.2; border: 1px solid rgba(255,255,255,.24); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.2), rgba(255,255,255,.04)); box-shadow: 0 24px 65px rgba(0,20,40,.25); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.omron-robot-card svg { width: 85%; max-height: 270px; }
.omron-section { padding: 56px 0; }
.omron-section-soft { background: var(--omron-pale); }
.omron-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.omron-section h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.2; color: var(--omron-navy); margin: 0 0 9px; letter-spacing: -.025em; }
.omron-section-head p { margin: 0; color: var(--omron-muted); }
.omron-text-link { color: var(--omron-blue); font-weight: 700; text-decoration: none; white-space: nowrap; }
.omron-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.omron-card { background: white; border: 1px solid var(--omron-border); border-radius: 5px; padding: 18px 16px; min-height: 210px; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.omron-card:hover { box-shadow: 0 10px 28px rgba(13,65,108,.09); transform: translateY(-2px); }
.omron-card-icon { width: 54px; height: 54px; display: grid; place-items: center; background: #edf6ff; border-radius: 12px; color: var(--omron-blue); margin-bottom: 18px; }
.omron-card-icon svg { width: 31px; height: 31px; }
.omron-card h3 { color: var(--omron-navy); font-size: 16px; line-height: 1.3; margin: 0 0 9px; }
.omron-card p { color: var(--omron-muted); font-size: 13px; line-height: 1.5; margin: 0 0 14px; }
.omron-card a { margin-top: auto; color: var(--omron-blue); font-weight: 700; text-decoration: none; }
.omron-about-news { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
.omron-about { display: grid; grid-template-columns: 130px 1fr; gap: 22px; align-items: start; }
.omron-about-mark { background: linear-gradient(145deg, #d8edff, #8bc8f5); min-height: 150px; border-radius: 5px; display: grid; place-items: center; color: var(--omron-blue-dark); font-size: 24px; font-weight: 800; }
.omron-kicker { font-size: 11px; color: var(--omron-blue); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.omron-about h2 { font-size: 24px; }
.omron-about p { color: var(--omron-muted); line-height: 1.65; }
.omron-news-list { list-style: none; padding: 0; margin: 0; }
.omron-news-list li { padding: 13px 0; border-bottom: 1px solid var(--omron-border); }
.omron-news-list a { color: var(--omron-navy); text-decoration: none; font-weight: 700; }
.omron-news-list small { display: block; color: var(--omron-muted); font-weight: 400; margin-top: 4px; }
.omron-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.omron-benefit { display: flex; align-items: center; gap: 12px; }
.omron-benefit-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 1px solid #9dccf5; border-radius: 50%; color: var(--omron-blue); font-size: 20px; }
.omron-benefit strong { display: block; font-size: 14px; color: var(--omron-navy); }
.omron-benefit span { display: block; color: var(--omron-muted); font-size: 12px; margin-top: 4px; }
.site-footer { background: #07385f; color: #d9ecfb; }
.site-footer a { color: white; }
.footer-widgets, .site-info { background: transparent; }
@media (max-width: 900px) {
  .omron-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .omron-hero-inner { grid-template-columns: 1fr .75fr; gap: 18px; }
  .omron-about-news { gap: 28px; }
  .omron-benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .omron-wrap { width: min(100% - 30px, 1120px); }
  .omron-hero { min-height: auto; }
  .omron-hero-inner { grid-template-columns: 1fr; padding-block: 45px; }
  .omron-hero h1 { font-size: 36px; }
  .omron-hero p { font-size: 15px; }
  .omron-hero-art { min-height: 170px; }
  .omron-robot-card { max-width: 300px; }
  .omron-section { padding: 40px 0; }
  .omron-section-head { align-items: start; flex-direction: column; }
  .omron-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .omron-card { padding: 14px 12px; min-height: 190px; }
  .omron-card h3 { font-size: 14px; }
  .omron-about-news { grid-template-columns: 1fr; }
  .omron-about { grid-template-columns: 90px 1fr; gap: 15px; }
  .omron-about-mark { min-height: 110px; font-size: 18px; }
  .omron-benefits { grid-template-columns: 1fr; }
}

/* Products page — blue/white catalog with product imagery */
.omron-products-page { color: var(--omron-text); }
.omron-products-wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.omron-products-hero { position:relative; overflow:hidden; color:#fff; padding:0; background:#073b68; }
.omron-products-hero-inner { min-height:370px; display:grid; grid-template-columns: .95fr 1.05fr; align-items:center; gap:24px; padding-block:44px; }
.omron-products-hero-copy { position:relative; z-index:2; }
.omron-products-hero .omron-eyebrow { font-size:12px; font-weight:700; letter-spacing:.12em; color:#d4edff; margin-bottom:14px; }
.omron-products-hero h1 { color:#fff; font-size:clamp(34px,4.3vw,52px); line-height:1.08; margin:0 0 18px; max-width:650px; letter-spacing:-.025em; }
.omron-products-hero p { color:#e5f3ff; font-size:18px; line-height:1.6; max-width:560px; margin:0 0 24px; }
.omron-products-hero-collage { position:absolute; inset:0 0 0 37%; background-image:linear-gradient(90deg,#073b68 0%,rgba(7,59,104,.82) 10%,rgba(7,59,104,.08) 52%,rgba(7,59,104,.02) 100%),url('assets/products-collage.jpg'); background-position:center,right center; background-size:cover; opacity:.98; }
.omron-products-actions { display:flex; flex-wrap:wrap; gap:12px; }
.omron-products-button { display:inline-flex; gap:12px; align-items:center; background:#087bd4; color:#fff !important; padding:14px 20px; border-radius:5px; font-weight:700; text-decoration:none !important; }
.omron-products-button:hover { background:#0068b8; }
.omron-products-button-outline { background:rgba(5,47,82,.18); border:1px solid rgba(255,255,255,.85); }
.omron-products-button-outline:hover { background:#fff; color:#073b68 !important; }
.omron-products-section { padding-block:48px 66px; }
.omron-products-heading { margin-bottom:24px; }
.omron-products-heading h2,.omron-docs-inner h2 { color:var(--omron-navy); font-size:clamp(27px,3vw,32px); margin:0 0 8px; }
.omron-products-heading p,.omron-docs-inner p { color:var(--omron-muted); margin:0; line-height:1.7; }
.omron-products-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.omron-product-card { min-width:0; overflow:hidden; display:flex; flex-direction:column; padding:0; border:1px solid var(--omron-border); border-radius:9px; background:#fff; text-decoration:none !important; transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.omron-product-card:hover { transform:translateY(-3px); border-color:#8fc5f1; box-shadow:0 12px 28px rgba(5,57,99,.12); }
.omron-product-image { display:block; height:164px; overflow:hidden; background:#f2f8fd; }
.omron-product-image img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; transition:transform .25s ease; }
.omron-product-card:hover .omron-product-image img { transform:scale(1.035); }
/* Keep the robotics image visually smaller so the robot is not oversized in its card. */
.omron-product-image-robot img { object-fit:contain; transform:scale(.88); }
.omron-product-card:hover .omron-product-image-robot img { transform:scale(.91); }
.omron-product-card-content { flex:1; display:flex; flex-direction:column; align-items:flex-start; padding:18px 18px 17px; }
.omron-product-card h3 { font-size:18px; line-height:1.32; color:var(--omron-navy); margin:0 0 9px; }
.omron-product-card p { color:var(--omron-muted); font-size:14px; line-height:1.55; margin:0 0 20px; }
.omron-product-link { margin-top:auto; color:var(--omron-blue); font-size:14px; font-weight:700; }
.omron-products-docs { background:#f2f8fd; border-block:1px solid var(--omron-border); padding:34px 0; }
.omron-docs-inner { display:flex; align-items:center; justify-content:space-between; gap:30px; }
.omron-products-button-light { flex-shrink:0; }
@media (max-width:1000px) { .omron-products-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .omron-products-hero-inner { grid-template-columns:1fr; min-height:340px; } .omron-products-hero-collage { left:25%; opacity:.62; } .omron-products-hero-copy { max-width:720px; } }
@media (max-width:560px) { .omron-products-wrap { width:min(100% - 30px,1240px); } .omron-products-hero-inner { padding-block:42px; min-height:0; } .omron-products-hero-collage { left:0; opacity:.28; background-image:linear-gradient(90deg,rgba(7,59,104,.94),rgba(7,59,104,.65)),url('assets/products-collage.jpg'); } .omron-products-hero h1 { font-size:35px; } .omron-products-hero p { font-size:16px; } .omron-products-section { padding-block:38px 46px; } .omron-products-grid { grid-template-columns:1fr; gap:14px; } .omron-product-card { display:grid; grid-template-columns:40% 60%; } .omron-product-image { height:100%; min-height:175px; } .omron-product-card-content { padding:15px 14px; } .omron-product-card h3 { font-size:16px; } .omron-product-card p { font-size:13px; margin-bottom:14px; } .omron-docs-inner { align-items:flex-start; flex-direction:column; } }

/* Services page */
.omron-services-page .omron-products-hero { background: linear-gradient(120deg, #063b68 0%, #0875d1 68%, #2296e8 100%); }
.omron-services-grid .omron-service-card { display: flex; flex-direction: column; align-items: flex-start; }
.omron-services-grid .omron-service-detail { color: #5c6d7d; font-size: .94rem; }
.omron-services-grid .omron-product-link { margin-top: auto; padding-top: 10px; }
.omron-services-page .omron-products-docs { margin-top: 48px; }
@media (max-width: 600px) { .omron-services-page .omron-products-docs { margin-top: 30px; } }


/* Official supplied OMRON logo in the site header */
.site-branding .main-title a {
  display: block;
  width: min(250px, 34vw);
  min-width: 170px;
  height: 56px;
  overflow: hidden;
  background-image: url("assets/omron-logo.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0;
  letter-spacing: 0;
}
.site-branding .main-title a:focus-visible {
  outline: 2px solid #0A5CA8;
  outline-offset: 4px;
}
.site-header {
  border-bottom: 2px solid #0A5CA8;
  background: #fff;
}
@media (max-width: 768px) {
  .site-header .inside-header {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .site-branding .main-title a {
    width: 205px;
    min-width: 150px;
    height: 46px;
  }
}


/* Homepage hero refinement: clean, confident blue-and-white industrial style */
.omron-hero {
  color: var(--omron-navy);
  background:
    radial-gradient(ellipse at 88% 18%, rgba(10,92,168,.07), transparent 34%),
    linear-gradient(115deg, #ffffff 0%, #f7fbff 64%, #eef6fc 100%);
  min-height: 350px;
  border-bottom: 1px solid var(--omron-border);
}
.omron-hero:after {
  width: 390px;
  height: 390px;
  right: -70px;
  top: -150px;
  border-color: rgba(10,92,168,.12);
  box-shadow: 0 0 0 38px rgba(10,92,168,.035), 0 0 0 82px rgba(10,92,168,.025);
  pointer-events: none;
}
.omron-hero-inner {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1120px;
  padding-block: 62px;
}
.omron-hero-inner > div:first-child {
  max-width: 790px;
}
.omron-hero .omron-eyebrow {
  color: #0A5CA8;
  letter-spacing: .16em;
  margin-bottom: 18px;
}
.omron-hero h1 {
  color: #082f52;
  max-width: 760px;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.08;
  letter-spacing: -.04em;
  margin-bottom: 20px;
}
.omron-hero p {
  color: #496985;
  max-width: 690px;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.omron-hero .omron-button {
  background: #0A5CA8;
  border: 1px solid #0A5CA8;
  border-radius: 3px;
  padding: 14px 20px;
}
.omron-hero .omron-button:hover {
  background: #084a88;
  border-color: #084a88;
}
.omron-hero .omron-button-secondary {
  margin-left: 10px;
  background: transparent;
  color: #0A5CA8 !important;
}
.omron-hero .omron-button-secondary:hover {
  background: #eaf3fb;
  color: #084a88 !important;
}
.omron-hero-art {
  display: none !important;
}
@media (max-width: 640px) {
  .omron-hero { min-height: auto; }
  .omron-hero-inner { padding-block: 44px; }
  .omron-hero h1 { font-size: clamp(32px, 9vw, 42px); }
  .omron-hero p { font-size: 16px; }
  .omron-hero .omron-button-secondary { margin: 10px 0 0; }
}


/* Static full-width industrial hero: no slider, one local panoramic image */
body.home .omron-homepage { overflow: visible; }
body.home .omron-hero.omron-hero-static {
  position: relative; left: 50%; width: 100vw; max-width: 100vw; margin-left: -50vw;
  min-height: 510px; display: flex; align-items: center;
  color: #fff; border: 0;
  background-color: #07558d;
  background-image: linear-gradient(90deg, rgba(4,57,101,.94) 0%, rgba(4,75,128,.82) 35%, rgba(4,75,128,.22) 66%, rgba(4,75,128,.02) 100%), url("assets/hero-industrial.jpg");
  background-position: center, center right; background-size: cover, cover; background-repeat: no-repeat;
}
body.home .omron-hero.omron-hero-static:after { display:none; }
body.home .omron-hero.omron-hero-static .omron-hero-inner {
  width: min(1120px, calc(100% - 40px)); max-width:1120px; margin-inline:auto;
  display:grid; grid-template-columns:minmax(0, 1fr); padding-block:76px;
}
body.home .omron-hero.omron-hero-static .omron-hero-inner > div:first-child { max-width:700px; }
body.home .omron-hero.omron-hero-static .omron-eyebrow { color:#d7edff; }
body.home .omron-hero.omron-hero-static h1 { color:#fff; max-width:700px; font-size:clamp(38px,4.3vw,58px); text-shadow:0 1px 3px rgba(0,0,0,.12); }
body.home .omron-hero.omron-hero-static p { color:#f2f8ff; max-width:630px; font-size:18px; line-height:1.65; }
body.home .omron-hero.omron-hero-static .omron-button { background:#0878d1; border-color:#0878d1; }
body.home .omron-hero.omron-hero-static .omron-button-secondary { background:rgba(3,47,82,.22); border:1px solid rgba(255,255,255,.9); color:#fff!important; }
body.home .omron-hero.omron-hero-static .omron-button-secondary:hover { background:rgba(255,255,255,.14); }
@media(max-width:760px) {
 body.home .omron-hero.omron-hero-static { min-height:460px; background-position:center, 62% center; background-image:linear-gradient(90deg,rgba(4,57,101,.92) 0%,rgba(4,75,128,.78) 62%,rgba(4,75,128,.42) 100%),url("assets/hero-industrial.jpg"); }
 body.home .omron-hero.omron-hero-static .omron-hero-inner { width:calc(100% - 32px); padding-block:54px; }
 body.home .omron-hero.omron-hero-static h1 { font-size:clamp(32px,8vw,44px); }
 body.home .omron-hero.omron-hero-static p { font-size:16px; }
 body.home .omron-hero.omron-hero-static .omron-button { margin:0 8px 10px 0; }
}

/* Final header fix: keep the desktop navigation on one line */
@media (min-width: 1025px) {
  .site-header .inside-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: min(1440px, calc(100% - 48px)) !important;
    max-width: 1440px !important;
    margin-inline: auto !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    gap: 24px !important;
  }
  .site-branding { flex: 0 0 230px !important; margin: 0 !important; }
  .site-branding .main-title a { width: 230px !important; min-width: 230px !important; height: 56px !important; }
  .main-navigation { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; }
  .main-navigation .inside-navigation { display: flex !important; justify-content: flex-end !important; flex-wrap: nowrap !important; }
  .main-navigation .main-nav { width: auto !important; }
  .main-navigation .main-nav > ul { display: flex !important; flex-wrap: nowrap !important; justify-content: flex-end !important; white-space: nowrap !important; }
  .main-navigation .main-nav > ul > li { flex: 0 0 auto !important; }
  .main-navigation .main-nav > ul > li > a { padding-left: 13px !important; padding-right: 13px !important; font-size: 14px !important; line-height: 54px !important; white-space: nowrap !important; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .site-header .inside-header { flex-wrap: wrap !important; }
  .main-navigation .main-nav > ul > li > a { padding-left: 9px !important; padding-right: 9px !important; font-size: 13px !important; }
}

/* Header refinement: bring navigation closer to the OMRON logo while keeping one row */
@media (min-width: 1025px) {
  .site-header .inside-header {
    justify-content: flex-start !important;
    gap: 24px !important;
  }
  .main-navigation {
    flex: 0 1 auto !important;
    margin-left: 0 !important;
  }
  .main-navigation .inside-navigation {
    justify-content: flex-start !important;
  }
  .main-navigation .main-nav > ul {
    justify-content: flex-start !important;
  }
}

/* Homepage product category cards — refined blue/white treatment */
.omron-home > .omron-section:first-of-type,
main.omron-home > .omron-section:first-of-type {
  padding-top: 38px;
  padding-bottom: 48px;
}
.omron-grid {
  align-items: stretch;
  gap: 16px;
}
.omron-card {
  position: relative;
  overflow: hidden;
  min-height: 226px;
  padding: 22px 19px 20px;
  border: 1px solid #d8e8f7;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(6, 66, 112, .025);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.omron-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: #0878c9;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.omron-card:hover,
.omron-card:focus-within {
  border-color: #9cccf0;
  box-shadow: 0 12px 28px rgba(6, 66, 112, .11);
  transform: translateY(-3px);
}
.omron-card:hover::before,
.omron-card:focus-within::before { transform: scaleX(1); }
.omron-card-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 17px;
  border-radius: 13px;
  background: #eaf5ff;
  color: #0874c4;
}
.omron-card-icon svg { width: 32px; height: 32px; }
.omron-card h3 {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 9px;
}
.omron-card p {
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 18px;
}
.omron-card a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}
.omron-card a:hover { color: #064d86; }
@media (max-width: 900px) {
  .omron-grid { gap: 13px; }
  .omron-card { min-height: 215px; }
}
@media (max-width: 640px) {
  .omron-home > .omron-section:first-of-type,
  main.omron-home > .omron-section:first-of-type { padding-top: 30px; padding-bottom: 36px; }
  .omron-grid { gap: 11px; }
  .omron-card { min-height: 205px; padding: 16px 13px; }
  .omron-card-icon { width: 50px; height: 50px; margin-bottom: 13px; }
  .omron-card-icon svg { width: 28px; height: 28px; }
}

/* OMRON Services — match the approved full-width industrial mockup */
.omron-services-page {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  color: #073f80;
}
body.page-template-page-services-php .site-content .content-area { width: 100%; }
body.page-template-page-services-php .site-content .inside-article { padding: 0; }
body.page-template-page-services-php .site-content { padding: 0; }
body.page-template-page-services-php .site-main { margin: 0; }
.omron-services-hero {
  position: relative;
  isolation: isolate;
  min-height: 312px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #063d78;
  color: #fff;
}
.omron-services-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(112deg, #063c78 0%, #0755a5 32%, rgba(0,91,177,.94) 39%, rgba(0,93,181,.08) 57%, rgba(0,48,91,.02) 100%);
  clip-path: polygon(0 0, 43% 0, 28% 100%, 0 100%);
}
.omron-services-hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: -25%; left: 34%;
  width: 105px; height: 150%;
  transform: skewX(-32deg);
  background: linear-gradient(90deg, rgba(0,145,255,.2), rgba(30,160,255,.62));
  border-left: 1px solid rgba(255,255,255,.16);
}
.omron-services-hero-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(4,54,103,.1), rgba(4,54,103,0) 35%), url('assets/services-hero.jpg');
  background-size: cover;
  background-position: center 53%;
}
.omron-services-hero-inner {
  position: relative;
  z-index: 3;
  width: min(1530px, calc(100% - 9.2%));
  margin: 0 auto;
  padding: 35px 0 31px;
}
.omron-services-eyebrow { color: #e5f3ff; font-size: 13px; font-weight: 700; letter-spacing: .08em; margin-bottom: 18px; }
.omron-services-eyebrow span { display:inline-block; width:28px; height:1px; background:#d8edff; vertical-align:middle; margin-left:8px; }
.omron-services-hero h1 { color:#fff; max-width:690px; font-size:clamp(34px,3.2vw,48px); line-height:1.08; letter-spacing:-.025em; font-weight:500; margin:0 0 13px; }
.omron-services-hero p { color:#f0f7ff; max-width:520px; font-size:18px; line-height:1.42; margin:0 0 17px; }
.omron-services-cta { display:inline-flex; align-items:center; gap:12px; padding:12px 25px; border-radius:8px; background:#087cf0; color:#fff !important; font-size:15px; font-weight:700; text-decoration:none !important; box-shadow:0 5px 16px rgba(0,79,170,.2); }
.omron-services-cta:hover { background:#006bd4; }
.omron-services-content { width:min(1585px, calc(100% - 9%)); margin:0 auto; padding:18px 0 58px; }
.omron-services-heading { display:flex; align-items:center; gap:22px; margin:0 0 14px; }
.omron-services-heading h2 { color:#0752a2; font-size:clamp(28px,2.5vw,36px); line-height:1.2; font-weight:500; margin:0; white-space:nowrap; }
.omron-services-heading span { height:1px; background:#b9d8fa; flex:1; }
.omron-services-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px 18px; }
.omron-services-card { position:relative; min-width:0; min-height:198px; display:flex; overflow:hidden; border:1px solid #c9e0fb; border-radius:10px; background:#fff; box-shadow:0 2px 8px rgba(0,75,145,.035); transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.omron-services-card:hover { transform:translateY(-3px); border-color:#8bbdf2; box-shadow:0 10px 24px rgba(0,75,145,.1); }
.omron-services-card-photo { position:absolute; inset:0 0 0 48%; overflow:hidden; }
.omron-services-card-photo::before { content:""; position:absolute; z-index:1; inset:0; background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.92) 5%,rgba(255,255,255,.28) 42%,rgba(255,255,255,0) 72%); }
.omron-services-card-photo img { width:100%; height:100%; display:block; object-fit:cover; object-position:center; }
.omron-services-card-copy { position:relative; z-index:2; width:66%; padding:17px 14px 14px 17px; display:flex; flex-direction:column; align-items:flex-start; }
.omron-services-icon { width:56px; height:56px; display:flex; align-items:center; justify-content:center; color:#0874ed; margin:0 0 9px; }
.omron-services-icon svg { width:54px; height:54px; fill:none; stroke:currentColor; stroke-width:3.4; stroke-linecap:round; stroke-linejoin:round; }
.omron-services-card h3 { color:#06479a; font-size:19px; line-height:1.18; font-weight:750; margin:0 0 10px; max-width:245px; }
.omron-services-card p { color:#15539a; font-size:15px; line-height:1.35; max-width:255px; margin:0 0 12px; }
.omron-services-card a { display:inline-flex; align-items:center; gap:8px; margin-top:auto; color:#006df0; font-size:14px; line-height:1.2; font-weight:750; text-decoration:none; }
.omron-services-card a:hover { color:#034d9f; }
@media (max-width: 1050px) {
 .omron-services-hero-inner { width:calc(100% - 60px); }
 .omron-services-content { width:calc(100% - 60px); }
 .omron-services-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .omron-services-hero::before { clip-path:polygon(0 0,60% 0,45% 100%,0 100%); }
}
@media (max-width: 640px) {
 .omron-services-hero { min-height:340px; }
 .omron-services-hero-image { background-position:62% center; }
 .omron-services-hero::before { clip-path:none; background:linear-gradient(90deg,rgba(4,54,103,.96),rgba(4,75,140,.8) 68%,rgba(4,75,140,.36)); }
 .omron-services-hero::after { display:none; }
 .omron-services-hero-inner,.omron-services-content { width:calc(100% - 34px); }
 .omron-services-hero-inner { padding:32px 0; }
 .omron-services-hero h1 { font-size:34px; }
 .omron-services-hero p { font-size:16px; }
 .omron-services-content { padding:24px 0 38px; }
 .omron-services-heading { gap:12px; }
 .omron-services-heading h2 { font-size:28px; }
 .omron-services-grid { grid-template-columns:1fr; gap:14px; }
 .omron-services-card { min-height:190px; }
 .omron-services-card-copy { width:68%; padding:15px 12px 13px 15px; }
 .omron-services-card-photo { left:43%; }
 .omron-services-card h3 { font-size:18px; }
 .omron-services-card p { font-size:14px; }
}


/* Services page: full-bleed hero and clean, non-overlapping image cards */
body.page-template-page-services-php .site-content .content-area,
body.page-template-page-services-php .site-content .site-main {
  width:100% !important; max-width:none !important; float:none !important;
}
body.page-template-page-services-php .site-content .inside-article,
body.page-template-page-services-php .site-content .inside-article .entry-content {
  padding:0 !important; margin:0 !important;
}
body.page-template-page-services-php .omron-services-page {
  width:100% !important; max-width:none !important; margin:0 !important;
}
body.page-template-page-services-php .omron-services-hero {
  width:100vw !important; max-width:100vw !important;
  position:relative; left:50%; margin-left:-50vw !important;
  min-height:330px;
}
body.page-template-page-services-php .omron-services-hero-inner {
  width:min(1530px, calc(100% - 9.2%));
}
body.page-template-page-services-php .omron-services-content {
  width:min(1585px, calc(100% - 9%)); max-width:none;
  margin:0 auto; padding:20px 0 58px;
}
body.page-template-page-services-php .omron-services-grid {
  grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px 18px;
}
body.page-template-page-services-php .omron-services-card {
  min-height:220px;
}
body.page-template-page-services-php .omron-services-card-photo {
  inset:0 0 0 52%;
}
body.page-template-page-services-php .omron-services-card-photo::before {
  background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.94) 10%,rgba(255,255,255,.52) 35%,rgba(255,255,255,0) 78%);
}
body.page-template-page-services-php .omron-services-card-photo img {
  object-fit:cover; object-position:center;
}
body.page-template-page-services-php .omron-services-card-copy {
  width:58%; padding:18px 8px 16px 18px;
}
body.page-template-page-services-php .omron-services-card h3 {
  max-width:100%; font-size:19px; line-height:1.18;
}
body.page-template-page-services-php .omron-services-card p {
  max-width:100%; font-size:15px; line-height:1.35;
}
@media (max-width:1050px) {
  body.page-template-page-services-php .omron-services-hero-inner {width:calc(100% - 60px);}
  body.page-template-page-services-php .omron-services-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:640px) {
  body.page-template-page-services-php .omron-services-hero {min-height:340px;}
  body.page-template-page-services-php .omron-services-content {width:calc(100% - 34px);}
  body.page-template-page-services-php .omron-services-grid {grid-template-columns:1fr; gap:14px;}
  body.page-template-page-services-php .omron-services-card {min-height:190px;}
  body.page-template-page-services-php .omron-services-card-photo {left:48%;}
  body.page-template-page-services-php .omron-services-card-copy {width:61%; padding:15px 8px 13px 15px;}
}


/* Final refinement: let the services cards use the full desktop content width,
   independent of GeneratePress' narrower article column. The hero is unchanged. */
@media (min-width: 1051px) {
  body.page-template-page-services-php .omron-services-content {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: min(1585px, calc(100vw - 9%));
    max-width: none;
    margin: 0;
    padding: 20px 0 58px;
  }
  body.page-template-page-services-php .omron-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 22px;
  }
  body.page-template-page-services-php .omron-services-card {
    min-height: 220px;
  }
}
@media (min-width: 641px) and (max-width: 1050px) {
  body.page-template-page-services-php .omron-services-content {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 60px);
    max-width: none;
    margin: 0;
  }
}
@media (max-width: 640px) {
  body.page-template-page-services-php .omron-services-content {
    left: auto;
    transform: none;
    width: calc(100% - 34px);
    margin: 0 auto;
  }
}


/* Products page: restore true full-viewport hero without changing product content.
   The page template sits inside GeneratePress' constrained content column, so
   expand only this page's outer content wrappers before sizing the hero. */
body.page-template-page-products-php .site-content {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.page-template-page-products-php .content-area {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}
body.page-template-page-products-php .site-main,
body.page-template-page-products-php .inside-article {
  margin: 0 !important;
  padding: 0 !important;
}
body.page-template-page-products-php .omron-products-hero {
  display: block;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  border-radius: 0 !important;
}



/* About page: remove GeneratePress content/sidebar constraints so the hero can span the viewport */
body.page-template-page-about-php .site-content {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}
body.page-template-page-about-php .site-content .content-area,
body.page-template-page-about-php .site-content .site-main {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
}
body.page-template-page-about-php .site-content .inside-article,
body.page-template-page-about-php .site-content .inside-article .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
body.page-template-page-about-php .omron-about-page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-top: 0 !important;
}
body.page-template-page-about-php .omron-about-page .about-hero {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: 0 !important;
}

/* OMRON archive documentation page */
.omron-archive-docs-page{color:#243447;background:#fff}
.omron-archive-docs-wrap{width:min(1180px,calc(100% - 48px));margin-inline:auto}
.omron-archive-docs-hero{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);min-height:330px;display:flex;align-items:center;background:linear-gradient(110deg,#073d70 0%,#0a5ca8 58%,#1677bd 100%);color:#fff;position:relative;overflow:hidden}
.omron-archive-docs-hero:after{content:"";position:absolute;width:480px;height:480px;border:1px solid rgba(255,255,255,.13);border-radius:50%;right:7%;top:-230px;box-shadow:0 0 0 42px rgba(255,255,255,.035),0 0 0 88px rgba(255,255,255,.025)}
.omron-archive-docs-hero-inner{position:relative;z-index:1;padding-top:66px;padding-bottom:66px}
.omron-archive-docs-eyebrow{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#c8e5ff;margin-bottom:18px}
.omron-archive-docs-hero h1{color:#fff;font-size:clamp(36px,5vw,58px);line-height:1.08;max-width:780px;margin:0 0 18px;font-weight:700}
.omron-archive-docs-hero p{font-size:18px;line-height:1.65;color:rgba(255,255,255,.88);max-width:760px;margin:0 0 28px}
.omron-archive-docs-button{display:inline-flex;align-items:center;gap:14px;padding:13px 22px;background:#fff;color:#07569b!important;border-radius:4px;font-weight:700;text-decoration:none!important;transition:transform .2s,box-shadow .2s}
.omron-archive-docs-button:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.16)}
.omron-archive-docs-intro{display:flex;align-items:center;gap:22px;padding-top:58px;padding-bottom:30px}
.omron-archive-docs-intro-mark{width:62px;height:62px;flex:0 0 62px;border-radius:12px;background:#eaf4fc;color:#0a5ca8;display:grid;place-items:center;font-size:17px;font-weight:800;letter-spacing:.04em}
.omron-archive-docs-intro h2{font-size:28px;line-height:1.2;color:#173b5b;margin:0 0 8px}
.omron-archive-docs-intro p{margin:0;color:#617386;line-height:1.65;max-width:850px}
.omron-archive-docs-grid-section{padding-top:12px;padding-bottom:64px}
.omron-archive-docs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.omron-archive-doc-card{border:1px solid #e0e8ef;border-radius:9px;padding:25px 26px 22px;background:#fff;box-shadow:0 5px 18px rgba(20,55,85,.045);scroll-margin-top:100px;transition:border-color .2s,transform .2s,box-shadow .2s}
.omron-archive-doc-card:hover{border-color:#a9cce8;transform:translateY(-2px);box-shadow:0 10px 26px rgba(20,55,85,.08)}
.omron-archive-doc-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}
.omron-archive-doc-number{font-size:13px;font-weight:800;color:#0a5ca8;background:#eaf4fc;border-radius:4px;padding:7px 10px}
.omron-archive-doc-type{font-size:10px;font-weight:800;letter-spacing:.12em;color:#8a9bab}
.omron-archive-doc-card h3{font-size:21px;line-height:1.3;color:#173b5b;margin:0 0 9px}
.omron-archive-doc-card>p{font-size:14px;line-height:1.65;color:#647587;min-height:47px;margin:0 0 20px}
.omron-archive-doc-empty{display:flex;align-items:center;gap:12px;border-top:1px solid #edf1f5;padding-top:17px}
.omron-archive-doc-file-icon{width:36px;height:40px;display:grid;place-items:center;flex:0 0 36px;border:1px solid #cbdced;border-radius:4px;color:#0a5ca8;font-size:10px;font-weight:800;background:#f7fbff}
.omron-archive-doc-empty strong,.omron-archive-doc-empty small{display:block}
.omron-archive-doc-empty strong{font-size:12px;color:#456176;font-weight:700}
.omron-archive-doc-empty small{font-size:11px;color:#91a0ad;margin-top:3px}
.omron-archive-docs-note{background:#f3f7fa;border-top:1px solid #e5edf3;padding:25px 0}
.omron-archive-docs-note .omron-archive-docs-wrap{display:flex;align-items:flex-start;gap:14px}
.omron-archive-docs-note-icon{width:24px;height:24px;display:grid;place-items:center;flex:0 0 24px;border-radius:50%;background:#dcecf8;color:#0a5ca8;font-weight:800;font-family:Georgia,serif}
.omron-archive-docs-note p{font-size:13px;line-height:1.65;color:#637587;margin:0}
.omron-archive-docs-note strong{color:#36536b}
@media(max-width:700px){.omron-archive-docs-wrap{width:min(100% - 32px,1180px)}.omron-archive-docs-hero{min-height:300px}.omron-archive-docs-hero-inner{padding-top:52px;padding-bottom:52px}.omron-archive-docs-hero p{font-size:16px}.omron-archive-docs-intro{padding-top:40px;gap:14px}.omron-archive-docs-intro-mark{width:50px;height:50px;flex-basis:50px}.omron-archive-docs-intro h2{font-size:23px}.omron-archive-docs-grid{grid-template-columns:1fr;gap:14px}.omron-archive-docs-grid-section{padding-bottom:42px}.omron-archive-doc-card{padding:21px}.omron-archive-doc-card>p{min-height:0}}

/* Archive documentation: working example for Automation Systems */
.omron-archive-doc-open{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf1f5;padding-top:17px;color:#075da8!important;font-size:13px;font-weight:700;text-decoration:none!important}
.omron-archive-doc-open:hover{color:#003f78!important}
.omron-archive-section-hero{min-height:285px}
.omron-archive-files-section{padding-top:48px;padding-bottom:64px}
.omron-archive-files-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}
.omron-archive-files-heading h2{font-size:28px;color:#173b5b;margin:0 0 7px}
.omron-archive-files-heading p{margin:0;color:#617386;line-height:1.6}
.omron-archive-files-count{flex:0 0 auto;background:#eaf4fc;color:#075da8;border-radius:20px;padding:8px 14px;font-size:12px;font-weight:800}
.omron-archive-files-list{border:1px solid #e0e8ef;border-radius:9px;overflow:hidden;background:#fff}
.omron-archive-file-row{display:flex;align-items:center;gap:15px;padding:15px 18px;border-bottom:1px solid #edf1f5}
.omron-archive-file-row:last-child{border-bottom:0}
.omron-archive-file-icon{width:42px;height:46px;display:grid;place-items:center;flex:0 0 42px;border:1px solid #cbdced;border-radius:5px;background:#f5faff;color:#0a5ca8;font-size:10px;font-weight:800}
.omron-archive-file-info{min-width:0;flex:1}
.omron-archive-file-info h3{font-size:14px;line-height:1.4;color:#173b5b;margin:0 0 4px;overflow-wrap:anywhere}
.omron-archive-file-info small{font-size:11px;color:#8797a6}
.omron-archive-file-actions{display:flex;align-items:center;gap:14px;flex:0 0 auto}
.omron-archive-file-actions a{font-size:12px;font-weight:700;color:#075da8!important;text-decoration:none!important}
.omron-archive-file-actions a:hover{text-decoration:underline!important}
.omron-archive-file-actions .omron-archive-download{color:#607487!important;font-weight:600}
.omron-archive-files-empty{padding:28px;border:1px dashed #bfd2e2;border-radius:8px;background:#f8fbfe;color:#456176}
.omron-archive-files-empty strong{display:block;margin-bottom:6px;color:#173b5b}
.omron-archive-files-empty p{margin:0;line-height:1.6}
@media(max-width:700px){.omron-archive-files-section{padding-top:34px;padding-bottom:42px}.omron-archive-files-heading{align-items:flex-start}.omron-archive-files-heading h2{font-size:23px}.omron-archive-file-row{align-items:flex-start;flex-wrap:wrap;padding:14px}.omron-archive-file-info{flex-basis:calc(100% - 60px)}.omron-archive-file-actions{margin-left:57px;flex-wrap:wrap;gap:12px}.omron-archive-file-actions a{font-size:12px}}


/* OMRON news posts: keep individual WordPress articles in the site's visual style */
.single-post .site-main { max-width: 980px; margin: 0 auto; padding: 48px 24px 70px; }
.single-post .entry-header { margin-bottom: 26px; }
.single-post .entry-title { color:#073b65; font-size:clamp(30px,4vw,42px); line-height:1.2; }
.single-post .entry-meta { color:#718397; font-size:13px; }
.single-post .post-image, .single-post .featured-image { margin-bottom:26px; }
.single-post .post-image img, .single-post .featured-image img, .single-post .wp-post-image { display:block; max-width:100%; height:auto; border-radius:10px; }
.single-post .entry-content { color:#344e64; font-size:17px; line-height:1.85; }
.single-post .entry-content h2, .single-post .entry-content h3 { color:#073b65; }
.single-post .entry-content a { color:#0875d1; }
.single-post .post-navigation { border-top:1px solid var(--omron-border); padding-top:22px; }
.omron-news-list-empty { padding:13px 0; border-bottom:1px solid var(--omron-border); color:var(--omron-navy); font-weight:700; }
.omron-news-list-empty small { display:block; color:var(--omron-muted); font-weight:400; margin-top:4px; }

/* OMRON archive: instant cross-section PDF filename search. */
.omron-archive-search{margin-top:38px;margin-bottom:38px;padding:28px 32px;border:1px solid #d8e8f6;border-radius:12px;background:#f4f9ff;box-shadow:0 8px 25px rgba(5,56,104,.05)}
.omron-archive-search h2{font-size:25px;color:#073c68;margin:0 0 9px}
.omron-archive-search>p{color:#526f89;margin:0 0 18px}
.omron-archive-search-label{display:block;font-size:13px;font-weight:700;color:#123d64;margin-bottom:8px}
.omron-archive-search input[type="search"]{display:block;width:100%;max-width:720px;padding:13px 16px;font-size:17px;border:1px solid #b8d1e7;border-radius:8px;background:#fff;color:#123d64}
.omron-archive-search input[type="search"]:focus{outline:2px solid #0875d1;outline-offset:2px}
.omron-archive-search .omron-archive-search-status{font-size:13px;color:#607d98;margin:13px 0 0}
.omron-archive-search-results{margin-top:13px;display:grid;gap:8px}
.omron-archive-search-result{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 15px;border:1px solid #dbe8f2;background:white;border-radius:7px}
.omron-archive-search-result-info{min-width:0;display:grid;gap:4px;overflow-wrap:anywhere}
.omron-archive-search-result-info strong{color:#123d64;font-size:14px}
.omron-archive-search-result-info small{color:#72879b;font-size:12px}
.omron-archive-search-result>a{white-space:nowrap;color:#075da8!important;font-weight:700;font-size:13px;text-decoration:none!important}
.omron-archive-search-result>a:hover{text-decoration:underline!important}
@media(max-width:650px){.omron-archive-search{padding:20px 16px}.omron-archive-search-result{align-items:flex-start;flex-direction:column;gap:8px}}
