/* Opolony redesign v2: delivered as a fresh URL to bypass the host's cached style.css. */
:where(.wp-site-blocks,.editor-styles-wrapper) .op-section.alignwide {
  width: min(1400px, calc(100% - 2 * clamp(1rem, 4vw, 3rem)));
  max-width: 1400px !important;
  margin-inline: auto !important;
}
:where(.wp-site-blocks,.editor-styles-wrapper) .op-section > .wp-block-columns,
:where(.wp-site-blocks,.editor-styles-wrapper) .op-section > .wp-block-query,
:where(.wp-site-blocks,.editor-styles-wrapper) .op-gallery-wrap > .wp-block-gallery {
  width: 100%; max-width: none !important;
}
:where(.wp-site-blocks,.editor-styles-wrapper) .op-section > :is(h2,p) { max-width: 820px; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-section .wp-block-columns { align-items: center; }
.op-header { position: sticky; top: 0; z-index: 90; }
.op-header > .alignwide { width: min(1400px, calc(100% - 2rem)); max-width: 1400px !important; margin-inline: auto !important; flex-wrap: nowrap !important; }
.op-header .op-brand { flex-shrink: 0; gap: .85rem; }
.op-header .op-brand figure { margin: 0; }
.op-header .op-brand img { display: block; width: 90px !important; height: auto; aspect-ratio: 272 / 116; object-fit: contain; }
.op-header .op-brand .wp-block-group { gap: 0; }
.op-header .op-brand .wp-block-site-title { font-size: 1.16rem !important; }
.op-header .op-brand p { margin: .25rem 0 0; font-size: .69rem; letter-spacing: .015em; white-space: nowrap; }
.op-header .wp-block-navigation { flex: 0 1 auto; min-width: 0; }
.op-header .wp-block-navigation a { white-space: nowrap; }
.op-header .op-header-actions { flex-shrink: 0; gap: .8rem; }
.op-header .op-header-phone { margin: 0; font-size: .88rem; font-weight: 750; }
.op-header .op-header-phone a { color: #131619; text-decoration: none; }
.op-header .op-header-phone a:hover { color: #9c1a15; }
.op-header .wp-block-button__link { white-space: nowrap; font-size: .82rem; }
body.admin-bar .op-header { top: var(--wp-admin--admin-bar--height, 32px); }

/* Split hero. Its blocks and photos stay editable on the actual front page. */
:where(.wp-site-blocks,.editor-styles-wrapper) .op-hero { min-height: 730px; padding-block: clamp(3.25rem, 6vw, 5rem) !important; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-hero > .op-section { max-width: 1400px !important; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-hero .wp-block-columns { align-items: center; gap: clamp(2rem, 4vw, 5rem); }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-hero .wp-block-column { min-width: 0; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-hero h1 {
  max-width: 13ch; font-size: clamp(2.85rem, 4.1vw, 4.8rem); line-height: 1.06;
  letter-spacing: -.055em; overflow-wrap: normal; word-break: normal;
}
:where(.wp-site-blocks,.editor-styles-wrapper) .op-hero p:not(.op-kicker) { max-width: 48ch; color: #e3e8e9; font-size: clamp(1.05rem, 1.25vw, 1.25rem); }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-hero .op-media { margin: 0; border-radius: 3px; box-shadow: 0 28px 64px rgba(0,0,0,.28); }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-hero .op-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 48%; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-hero .wp-block-buttons { gap: .8rem; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-hero .is-style-outline .wp-block-button__link { border-color: rgba(255,255,255,.5); color: #fff; }

/* Each claim remains in a real core block rather than a fixed background. */
:where(.wp-site-blocks,.editor-styles-wrapper) .op-proof .wp-block-columns { align-items: start; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-proof h3 { font-size: clamp(1.4rem, 2vw, 2rem); text-transform: none; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-proof p { max-width: 28ch; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-process .wp-block-columns { align-items: stretch; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-process .wp-block-column { padding-right: .75rem; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-process h3 { font-size: clamp(1.2rem, 1.65vw, 1.5rem); }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-process .wp-block-column p:not(.op-kicker) { line-height: 1.55; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-services .wp-block-columns { align-items: stretch; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-service-card { height: 100%; border-radius: 10px; overflow: hidden; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-services > .op-section > .op-service-card { display: grid; grid-template-columns: 38% 1fr; align-items: center; column-gap: clamp(1rem, 3vw, 3rem); padding: 1.25rem; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-services > .op-section > .op-service-card > * { grid-column: 2; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-services > .op-section > .op-service-card > .op-media { grid-column: 1; grid-row: 1 / span 4; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-service-card .op-media img { aspect-ratio: 16 / 10; height: auto; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-services > .op-section > .wp-block-columns .op-media img { aspect-ratio: 16 / 9; height: auto; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-service-card h3 { font-size: clamp(1.4rem, 2.1vw, 2rem); }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-service-card p { line-height: 1.5; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-service-card a:hover { text-decoration-thickness: 2px; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-quality .wp-block-columns,
:where(.wp-site-blocks,.editor-styles-wrapper) .op-final-cta .wp-block-columns { align-items: center; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-quality .op-media img,
:where(.wp-site-blocks,.editor-styles-wrapper) .op-final-cta .op-media img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-news .wp-block-post-template { max-width: 760px; }
:where(.wp-site-blocks,.editor-styles-wrapper) .op-news .opolony-card { padding: 2rem; background: #fff; border-radius: 10px; }
.op-final-cta { background: #f5f3f0; }
.op-footer .alignwide { max-width: 1400px !important; width: min(1400px, calc(100% - 2rem)); margin-inline: auto !important; }
.op-footer .wp-block-site-title { font-size: 1.6rem; }
.op-footer p { color: #d6dadd; }
.op-gallery-intro { padding-block: clamp(2.5rem, 5vw, 5rem) 1.5rem; }
.op-gallery-intro h2 { max-width: 19ch; }
.op-gallery-wrap { padding-bottom: 2rem; }
.op-gallery { gap: 1rem !important; }
.op-gallery figure.wp-block-image { aspect-ratio: 4 / 3; margin: 0 !important; overflow: hidden; border-radius: 8px; background: #e8e6e2; }
.op-gallery figure.wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
@media (hover:hover) { .op-gallery figure.wp-block-image:hover img { transform: scale(1.035); } }
.op-gallery-note { padding-block: 1rem 5rem; color: #515b62; font-size: .9rem; }
.op-gallery-note .wp-block-details { margin-top: 1.5rem; }

@media (max-width: 1280px) {
  .op-header .op-brand img { width: 72px !important; }
  .op-header .op-brand p { display: none; }
  .op-header .wp-block-navigation { font-size: .82rem; gap: .7rem; }
  .op-header .op-header-actions { gap: .5rem; }
  .op-header .op-header-phone { font-size: .8rem; }
}
@media (max-width: 1050px) {
  .op-header > .alignwide { flex-wrap: wrap !important; justify-content: space-between; }
  .op-header .wp-block-navigation { order: 3; flex: 1 0 100%; justify-content: center; }
  .op-header .wp-block-navigation__container { justify-content: center; }
  .op-hero h1 { max-width: 15ch; }
}
@media (max-width: 780px) {
  :where(.wp-site-blocks,.editor-styles-wrapper) .op-hero { min-height: 0; padding-block: 3.5rem !important; }
  :where(.wp-site-blocks,.editor-styles-wrapper) .op-hero .wp-block-columns { flex-direction: column; gap: 2.5rem; }
  :where(.wp-site-blocks,.editor-styles-wrapper) .op-hero .wp-block-column { width: 100%; flex-basis: auto !important; }
  :where(.wp-site-blocks,.editor-styles-wrapper) .op-hero h1 { max-width: 15ch; font-size: clamp(2.55rem, 8vw, 4.5rem); }
  :where(.wp-site-blocks,.editor-styles-wrapper) .op-hero .op-media img { height: auto; }
  :where(.wp-site-blocks,.editor-styles-wrapper) .op-services > .op-section > .op-service-card { display: block; padding: 0; }
  :where(.wp-site-blocks,.editor-styles-wrapper) .op-services > .op-section > .op-service-card > .op-media { width: 100%; }
  :where(.wp-site-blocks,.editor-styles-wrapper) .op-services > .op-section > .op-service-card > :not(.op-media) { margin-inline: 1.25rem; }
  .op-header .op-header-phone { display: none; }
  .op-header .wp-block-navigation { order: 0; flex: 0 0 auto; }
  .op-header > .alignwide { flex-wrap: nowrap !important; }
  .op-header .op-header-actions { display: none; }
  .op-header .op-brand .wp-block-site-title { font-size: 1.03rem !important; }
  .op-header .op-brand img { width: 60px !important; }
  .op-gallery { gap: .65rem !important; }
  .op-gallery figure.wp-block-image { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .op-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
  .op-hero .wp-block-button, .op-hero .wp-block-button__link { width: 100%; }
  .op-proof .wp-block-columns { gap: 1.5rem; }
  .op-proof .wp-block-column { padding-left: 1rem; }
  .op-header .op-brand img { width: 50px !important; }
  .op-header .op-brand .wp-block-site-title { font-size: .92rem !important; }
  .op-header .wp-block-navigation { margin-left: auto; }
  .op-gallery { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 601px) { body.admin-bar .op-header { top: 0; } }
@media (prefers-reduced-motion: reduce) {
  .op-gallery figure.wp-block-image img { transition: none; }
  html { scroll-behavior: auto; }
}
