/* Approved silver/graphite/red visual system. Content and geometry stay in their existing components. */
:root {
  /* stylelint-disable custom-property-pattern -- WordPress native preset names. */
  --brand-primary:#b51f32; --brand-hover:#941729;
  --cta-width:240px; --cta-height:52px; --cta-font-size:13px;
  --cta-font-weight:600; --cta-gap:12px; --cta-padding:20px;
  --text-primary:#151719; --text-secondary:#53575c; --text-muted:#686d73;
  --surface-main:#e9ebed; --surface-alt:#dfe2e5; --surface-warm:#e9ebed;
  --surface-dark:#17191c; --text-inverse:#fff; --text-inverse-secondary:#d9dce1;
  --border-subtle:#cdd1d5; --border-control:#747a81;
  --focus:#b51f32; --error:#b42318; --success:#216e39;
  --wp--preset--color--surface-main:#e9ebed;
  --wp--preset--color--surface-alt:#dfe2e5;
  --wp--preset--color--surface-warm:#e9ebed;
  --wp--preset--color--brand-primary:#b51f32;
  /* stylelint-enable custom-property-pattern */
}
body, .hero-v2, .about-section, .application-gallery { background-color:#e9ebed; }
.directory-section.brand-section {background:#f5f6f6;}

.directory-section.category-section {
  background:linear-gradient(135deg,#e9ebed,#dfe2e5);
  border-color:#cdd1d5;
}
.owell-why-feature {background:#e9ebed;}
.owell-news-feature {background:#f4f5f5;}

.directory-section .brand-card,.directory-section .category-card {
  background:#fafafa;
  border-color:#d1d5d9;
  box-shadow:inset 0 1px #fff,0 5px 14px -9px #181c242e;
}
.directory-section h2 span,.owell-why-feature .why-title span,.owell-news-feature .news-title span {color:#6f747c;}
.section-kicker,.directory-section .eyebrow,.owell-why-feature .eyebrow {color:#a71c2f;}
.hero-v2 .slide-position[aria-current]::before {background:#d34955;}
.hero-v2.has-light-pagination .slide-position[aria-current]::before {background:#b92531;}
.owell-inquiry-feature {background:radial-gradient(ellipse at 82% 20%,#454b5466,transparent 62%),#17191c;}
.owell-inquiry-feature .inquiry-title span {color:#d83246;}

.owell-inquiry-feature .inquiry-cta,.owell-inquiry-feature .quote-button {
  background:#b51f32;
  color:#fff;
}

.owell-inquiry-feature .brief {
  background:#f7f8f8;
  border-top-color:#bd273a;
  box-shadow:0 28px 64px -30px #0009,inset 0 1px #fff;
}
.owell-inquiry-feature .engine-route {background:#e1e5e8;}
.owell-inquiry-feature .part-route {background:#eceeef;}
.owell-inquiry-feature .detail {background:#f0f2f3;}

.site-footer.owell-footer {
  --ink:#17191c;
  --line:#393e45;
  --gold:#db6e7a;
}

.owell-why-feature .options {
  background:#f6f7f7;
  border-color:#cbd0d5;
}
.owell-why-feature .options-shade {background:linear-gradient(90deg,#f6f7f7 3%,#f6f7f7f5 26%,#f6f7f76b 58%,#f6f7f700 89%);}
.owell-why-feature .advantage {box-shadow:0 10px 25px -22px #1b24345c;}

.owell-why-feature .trade {
  background:#24282d;
  border-color:#343a42;
}
.owell-why-feature .trade-shade {background:linear-gradient(90deg,#24282d 3%,#24282de0 38%,#24282d33 76%);}
.owell-why-feature .trade-origin {color:#e1a3ad;}
.owell-why-feature .trade-art [fill="#dfb66b"] {fill:#db6675;}
.owell-why-feature .trade-art [fill="#d3c3a2"] {fill:#d4d8de;}
.owell-why-feature .trade-art .route-pulse {stroke:#db6675;}
.quick-contact-email {background:#292c31;}
.quick-contact-whatsapp {background:#128c7e;}
.quick-contact-top {background:#b92531;}
.quick-contact-email,.quick-contact-whatsapp {color:#fff;}

@media(width <=760px) {
  .has-mobile-toggle>.quick-contact-action::before {background:#25282d;}

  .has-mobile-toggle .quick-contact-top::before {
    background:#f5f6f7;
    border-color:#d4d7dc;
  }
  .has-mobile-toggle .quick-contact-links .quick-contact-email {color:#34383e;}
  .has-mobile-toggle .quick-contact-links .quick-contact-whatsapp {color:#128c7e;}
}
.owell-news-feature svg [stroke] {stroke:#8b919a;}
.owell-why-feature .trade-art [stroke] {stroke:#8b919a;}
.owell-why-feature .trade-art .route {stroke:#d05762;}
.owell-why-feature .foundation .card-topline {color:#f2f3f5;}
.owell-why-feature .trade .card-topline {color:#e9a0a8;}
.owell-inquiry-feature .eyebrow {color:#e9a0a8;}

/* Blur lives on its own layer: fixed menus/search keep their existing containing block. */
#site-header {
  isolation:isolate;
  background:transparent!important;
  color:var(--glass-header-ink,#151719)!important;
  box-shadow:none!important;
}

#site-header::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:rgb(245 247 249 / var(--glass-alpha,.58));
  backdrop-filter:blur(var(--glass-blur,20px)) saturate(1.08);
  box-shadow:inset 0 1px rgb(255 255 255 / var(--glass-highlight,0)),inset 0 -1px rgb(151 157 167 / var(--glass-edge,0)),0 7px 25px -15px rgb(24 27 32 / var(--glass-shadow,0));
}
#site-header .logo-dark {display:block!important;}
#site-header .logo-light {display:none!important;}
#site-header.has-dark-backdrop .logo-dark {display:none!important;}
#site-header.has-dark-backdrop .logo-light {display:block!important;}
#site-header .header-actions .utility-link {color:inherit;}

@supports not (backdrop-filter:blur(1px)) {
  #site-header::before {background:rgb(244 245 247 / var(--glass-fallback,.96));}
}

@media(prefers-reduced-motion:reduce) {
  #site-header::before {transition:none;}
}

/* Shared main-action system; native labels, URLs and button markup stay editable. */
:is(
  .hero-v2[data-presentation="campaign"] .button,
  :is(.about-v3, .about-page-shell) .about-button [class~="wp-block-button__link"],
  .owell-inquiry-feature .quote-button
) {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--cta-width);
  max-width: 100%;
  height: var(--cta-height);
  min-height: var(--cta-height);
  padding: 0 var(--cta-padding);
  gap: var(--cta-gap);
  border: 1px solid transparent;
  border-radius: 0;
  font-size: var(--cta-font-size);
  font-weight: var(--cta-font-weight);
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

:is(
  .hero-v2[data-presentation="campaign"] .button:not(.button-inverse),
  :is(.about-v3, .about-page-shell) .about-button [class~="wp-block-button__link"],
  .owell-inquiry-feature .quote-button
) {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

:is(
  .hero-v2[data-presentation="campaign"] .button:not(.button-inverse),
  :is(.about-v3, .about-page-shell) .about-button [class~="wp-block-button__link"],
  .owell-inquiry-feature .quote-button
):is(:hover, :focus-visible) {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
}

:is(
  .hero-v2[data-presentation="campaign"] .button,
  :is(.about-v3, .about-page-shell) .about-button [class~="wp-block-button__link"],
  .owell-inquiry-feature .quote-button
):focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 4px;
}

:is(
  .hero-v2[data-presentation="campaign"] .button,
  :is(.about-v3, .about-page-shell) .about-button [class~="wp-block-button__link"],
  .owell-inquiry-feature .quote-button
) > :is(svg[aria-hidden], span[aria-hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  line-height: 1;
}

@media (width <= 760px) {
  :root {
    --cta-width: 224px;
    --cta-height: 48px;
    --cta-padding: 16px;
  }
}

/* The existing footer control reopens preferences without a duplicate fixed overlay.
   Keep the plugin's floating fallback on pages that lack that control. */
body:has(.owell-footer .utility-nav .cmplz-manage-consent) #cmplz-manage-consent {
  display: none;
}

/* UI 2.0 homepage rhythm: one label scale, one content rail and equal logo canvases. */
.homepage-v2 {
  --homepage-content-max:1240px;
  --homepage-rail:48px;
  --homepage-label-font-family:system-ui,-apple-system,"Segoe UI",arial,sans-serif;
  --homepage-label-font-size:11px;
  --homepage-label-letter-spacing:.14em;
  --homepage-label-line-height:1.5;
}

.homepage-v2 :is(.eyebrow,.section-kicker) {
  font-family:var(--homepage-label-font-family);
  font-size:var(--homepage-label-font-size);
  font-weight:700;
  letter-spacing:var(--homepage-label-letter-spacing);
  line-height:var(--homepage-label-line-height);
}

.homepage-v2 :is(
  .directory-section .container,
  .owell-why-feature .container,
  .owell-inquiry-feature .inquiry-container,
  .owell-news-feature .news-container,
  #about-owell>.container
) {
  width:min(var(--homepage-content-max),calc(100% - var(--homepage-rail) - var(--homepage-rail)));
}

.homepage-v2 .application-gallery {
  padding-inline:var(--homepage-rail);
}

.homepage-v2 :is(.application-heading,.gallery-grid) {
  max-width:var(--homepage-content-max);
}

.homepage-v2 #engine-brands .brand-card:not(.is-open,.is-hovered) .logo-window {
  width:185px;
  height:185px;
}

.homepage-v2 #engine-brands .brand-card:not(.is-open,.is-hovered) .logo-window img {
  width:100%;
  height:100%;
  padding:0;
  object-fit:contain;
  background:transparent;
}

@media(width <=1000px) {
  .homepage-v2 {
    --homepage-rail:32px;
    --homepage-label-font-size:10px;
  }
}

@media(width <=760px) {
  .homepage-v2 {
    --homepage-rail:20px;
    --homepage-label-font-size:9px;
  }

  .homepage-v2 #engine-brands .brand-card:not(.is-open,.is-hovered) .logo-window {
    width:125px;
    height:125px;
  }

}

/* Extend compact link hit areas into existing space without changing layout.
   Include touch-capable large screens as well as compact viewports. */
@media (width <= 1024px), (any-pointer: coarse) {
  :is(.about-profile .breadcrumb a, .about-profile .business-visit a,
    .ona-breadcrumb a, .contact-page .banner .crumbs a,
    .contact-page .contact-row a, .owell-catalog .p1-breadcrumb a,
    .owell-catalog .pd-family > a, .owell-catalog .pd-context > a,
    .odp-main .odp-back, .odp-main .odp-eyebrow a, .odp-main .odp-direct-contact a) {
    position: relative;
  }

  :is(.about-profile .breadcrumb a, .about-profile .business-visit a,
    .ona-breadcrumb a, .contact-page .banner .crumbs a,
    .contact-page .contact-row a, .contact-page .map-link,
    .owell-catalog .p1-breadcrumb a, .owell-catalog .pd-family > a,
    .owell-catalog .pd-context > a, .odp-main .odp-back,
    .odp-main .odp-eyebrow a, .odp-main .odp-direct-contact a)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 44px;
    min-height: 44px;
    transform: translate(-50%, -50%);
  }
}
