/* IT-OBEREG v19 reusable service-page Gutenberg patterns.
   Scoped to corporate templates only; Astra blog stays untouched. */
body.ito-company .ito-svc-section{position:relative;isolation:isolate;box-sizing:border-box;max-width:none;margin:0;color:#14211b}
body.ito-company .ito-svc-section *,body.ito-company .ito-svc-section *::before,body.ito-company .ito-svc-section *::after{box-sizing:border-box}
body.ito-company .ito-svc-inner{width:min(calc(100% - 80px),var(--ito-width,1440px));max-width:1600px;margin:0 auto}
body.ito-company .ito-svc-section h1,body.ito-company .ito-svc-section h2,body.ito-company .ito-svc-section h3{color:#111827;font-family:inherit;letter-spacing:-.028em;overflow-wrap:normal;word-break:normal;hyphens:none}
body.ito-company .ito-svc-section p{font-size:16px;line-height:1.55;color:#25342c;margin:0}
body.ito-company .ito-svc-section .wp-block-columns{margin:0;gap:26px;align-items:center}
body.ito-company .ito-svc-section .wp-block-column{min-width:0}
body.ito-company .ito-svc-section .wp-block-image{margin:0;min-width:0}
body.ito-company .ito-svc-section .wp-block-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
body.ito-company .ito-svc-section .wp-block-buttons{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:12px}
body.ito-company .ito-svc-section .wp-block-button{margin:0}
body.ito-company .ito-svc-section .wp-block-button__link{font-family:inherit;font-size:15px;font-weight:700;line-height:1.25;padding:12px 19px;min-height:46px;border-radius:9px;transition:background .18s ease,box-shadow .18s ease,transform .18s ease;max-width:100%;text-align:center}
body.ito-company .ito-svc-section .ito-svc-main-action .wp-block-button__link,body.ito-company .ito-svc-section .ito-svc-cta-primary .wp-block-button__link{color:#fff;background:linear-gradient(180deg,#23a63d 0%,#118c2f 55%,#086b25 100%);border:1px solid #148e31;box-shadow:0 6px 16px rgba(12,119,39,.16)}
body.ito-company .ito-svc-section .ito-svc-main-action .wp-block-button__link:hover,body.ito-company .ito-svc-section .ito-svc-cta-primary .wp-block-button__link:hover{background:linear-gradient(180deg,#159a33,#076721);box-shadow:0 9px 22px rgba(12,119,39,.23);transform:translateY(-1px)}
body.ito-company .ito-svc-section .ito-svc-secondary-action .wp-block-button__link{border:1.5px solid #118c2f;background:rgba(255,255,255,.92);color:#12381d;box-shadow:none}
body.ito-company .ito-svc-section .ito-svc-secondary-action .wp-block-button__link:hover{background:#eaf6ed;color:#086b25}

/* The new editable hero REPLACES, not duplicates, the template's old hero/H1. */
body.ito-service-landing .ito-company-main .ito-page-content-wrap{width:100%!important;max-width:none!important;padding:0!important;margin:0!important;}
body.ito-service-landing .ito-company-main .ito-page-content-wrap>.ito-content{max-width:none!important;width:100%!important;margin:0;padding:0;}
body.ito-service-landing .ito-company-main .ito-content>.ito-svc-section:first-child{margin-top:0}
body.ito-company .ito-service-hero{min-height:440px;display:flex;align-items:center;overflow:hidden;background:#f5faf6;margin:0;padding:50px 0;}
body.ito-company .ito-service-hero .ito-service-hero-image{position:absolute;z-index:-2;inset:0;width:100%;height:100%;}
body.ito-company .ito-service-hero .ito-service-hero-image img{object-position:70% center;width:100%;height:100%;}
body.ito-company .ito-service-hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#f6fcf7 0%,rgba(246,252,247,.98) 27%,rgba(246,252,247,.90) 39%,rgba(246,252,247,.53) 52%,rgba(246,252,247,.08) 71%,transparent 100%)}
body.ito-company .ito-service-hero .ito-service-hero-copy{position:relative;padding-right:clamp(0px,3vw,30px)}
body.ito-company .ito-service-hero .ito-service-hero-copy>h1{font-size:clamp(34px,3.4vw,52px);line-height:1.08;letter-spacing:-.043em;font-weight:800;max-width:720px;margin:10px 0 17px;color:#101a23}
body.ito-company .ito-service-hero .ito-svc-eyebrow{font-size:15px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;color:#08732a}
body.ito-company .ito-service-hero .ito-svc-lead{font-size:17px;line-height:1.48;max-width:690px;font-weight:500;color:#182c21;margin:0 0 24px}
body.ito-company .ito-service-hero .ito-svc-actions{max-width:690px}

/* Three concise promises, below hero, with original vector icon components. */
body.ito-company .ito-svc-value-strip{background:#fff;padding:16px 0 28px}
body.ito-company .ito-svc-value-strip .ito-svc-value-grid{gap:0;background:linear-gradient(113deg,#f3faf5,#e9f7ec);border:1px solid #e4efe7;border-radius:18px;padding:19px 22px;box-shadow:0 7px 26px rgba(25,95,49,.05);align-items:stretch}
body.ito-company .ito-svc-value-grid>.wp-block-column{padding:0 20px;border-right:1px solid #c9e2cf;display:flex;align-items:center}
body.ito-company .ito-svc-value-grid>.wp-block-column:last-child{border-right:0}
body.ito-company .ito-svc-value-item{display:grid;grid-template-columns:58px 1fr;gap:14px;align-items:center;width:100%}
body.ito-company .ito-svc-icon{width:58px;height:58px;display:flex;align-items:center;justify-content:center}
body.ito-company .ito-svc-icon img{object-fit:contain;width:100%;height:100%}
body.ito-company .ito-svc-feature-copy h3{font-size:19px;line-height:1.24;font-weight:800;margin:0 0 5px}
body.ito-company .ito-svc-feature-copy p{font-size:14px;line-height:1.43;margin:0}

/* Editorial split sections. */
body.ito-company .ito-svc-problem,body.ito-company .ito-svc-partner{background:#fff;padding:32px 0 40px}
body.ito-company .ito-svc-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,4vw,68px);align-items:center}
body.ito-company .ito-svc-split-copy h2{font-size:clamp(27px,2.6vw,39px);line-height:1.14;font-weight:800;margin:0 0 22px;max-width:730px}
body.ito-company .ito-svc-split-copy h2::before{display:block;content:"";width:56px;height:4px;background:linear-gradient(90deg,#118c2f,#69c872);border-radius:3px;margin:0 0 15px}
body.ito-company .ito-svc-split-copy>p{font-size:17px;line-height:1.55;max-width:690px;margin:0}
body.ito-company .ito-svc-split-media .ito-svc-photo{height:320px;overflow:hidden;border-radius:15px;box-shadow:0 14px 30px rgba(13,55,28,.1)}
body.ito-company .ito-svc-split-media .ito-svc-photo img{object-position:center}

/* Four service tiles in a 2x2 grid. */
body.ito-company .ito-svc-solutions{background:linear-gradient(115deg,#f5faf6,#e7f6eb);padding:45px 0 48px}
body.ito-company .ito-svc-solutions .ito-svc-inner>h2{font-size:clamp(28px,2.5vw,40px);line-height:1.16;font-weight:800;max-width:1150px;margin:0 0 23px}
body.ito-company .ito-svc-solutions-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px!important;align-items:stretch!important}
body.ito-company .ito-svc-solutions-grid>.wp-block-column{margin:0!important}
body.ito-company .ito-svc-solution-card{display:grid;grid-template-columns:70px 1fr;align-items:center;gap:18px;background:linear-gradient(145deg,#fff,#fdfefd);border:1px solid #e4ece6;border-radius:15px;padding:18px 20px;height:100%;min-height:116px;box-shadow:0 6px 18px rgba(23,80,34,.07)}
body.ito-company .ito-svc-solution-card>.ito-svc-icon{width:66px;height:66px;border-radius:12px;background:linear-gradient(145deg,#f3fcf5,#e0f4e6);padding:11px}
body.ito-company .ito-svc-solution-card .ito-svc-feature-copy h3{font-size:19px}
body.ito-company .ito-svc-solution-card .ito-svc-feature-copy p{font-size:15px}

/* Trust / partner section. */
body.ito-company .ito-svc-partner{padding:43px 0 44px}
body.ito-company .ito-svc-partner-photo{position:relative}
body.ito-company .ito-svc-partner-photo .ito-svc-photo{height:330px}
body.ito-company .ito-svc-since{position:absolute;left:24px;bottom:24px;background:linear-gradient(145deg,#179a37,#087225);padding:13px 20px;border-radius:11px;box-shadow:0 10px 20px rgba(9,70,23,.18)}
body.ito-company .ito-svc-since h3,body.ito-company .ito-svc-since p{color:#fff;margin:0}
body.ito-company .ito-svc-since h3{font-size:23px;line-height:1.15}
body.ito-company .ito-svc-since p{font-size:13px}
body.ito-company .ito-svc-proof-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:0!important;margin-top:26px!important}
body.ito-company .ito-svc-proof-grid>.wp-block-column{border-right:1px solid #cfe7d3;padding-right:10px;margin-right:12px}
body.ito-company .ito-svc-proof-grid>.wp-block-column:last-child{border-right:0;margin:0}
body.ito-company .ito-svc-proof h3{font-size:clamp(18px,2vw,29px);font-weight:800;color:#07802b;line-height:1.1;margin:0 0 5px}
body.ito-company .ito-svc-proof p{font-size:12px;line-height:1.3}

/* Full-width CTA with the supplied green wave background. */
body.ito-company .ito-svc-last-cta{background:#fff;padding:0 0 52px}
body.ito-company .ito-svc-last-cta>.ito-svc-inner{background:linear-gradient(110deg,rgba(4,101,30,.66),rgba(4,121,45,.35)),url('../bundled/service-v19/service-green-bg.webp') center 52%/cover no-repeat;border-radius:18px;padding:30px 38px;box-shadow:0 12px 25px rgba(9,81,35,.12)}
body.ito-company .ito-svc-cta-grid{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:center}
body.ito-company .ito-svc-cta-title{border-right:1px solid rgba(255,255,255,.48);padding-right:20px}
body.ito-company .ito-svc-last-cta h2{font-size:clamp(27px,2.5vw,39px);font-weight:800;color:#fff;line-height:1.13;margin:0}
body.ito-company .ito-svc-last-cta .ito-svc-cta-copy p{color:#fff;font-size:17px;line-height:1.45;margin:0 0 15px}
body.ito-company .ito-svc-last-cta .ito-svc-cta-primary .wp-block-button__link{background:#fff;color:#075a20;border:1px solid #fff}
body.ito-company .ito-svc-last-cta .ito-svc-cta-primary .wp-block-button__link:hover{background:#eaf6ed;color:#075a20}
body.ito-company .ito-svc-last-cta .ito-svc-cta-secondary .wp-block-button__link{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.9)}
body.ito-company .ito-svc-last-cta .ito-svc-cta-secondary .wp-block-button__link:hover{background:rgba(255,255,255,.16)}

/* Service patterns can also be added separately on ordinary corporate templates.
   Only pages containing the new Hero get the full-bleed page treatment. */
@media(max-width:1100px){
 body.ito-company .ito-svc-inner{width:calc(100% - 48px)}
 body.ito-company .ito-service-hero{min-height:410px}
 body.ito-company .ito-service-hero .ito-service-hero-copy>h1{max-width:610px;font-size:clamp(32px,4vw,44px)}
 body.ito-company .ito-svc-value-grid>.wp-block-column{padding:0 12px}
 body.ito-company .ito-svc-value-item{grid-template-columns:44px 1fr;gap:10px}
 body.ito-company .ito-svc-value-item .ito-svc-icon{width:44px;height:44px}
 body.ito-company .ito-svc-feature-copy h3{font-size:17px}
 body.ito-company .ito-svc-feature-copy p{font-size:13px}
 body.ito-company .ito-svc-split-media .ito-svc-photo{height:285px}
}
@media(max-width:790px){
 body.ito-company .ito-svc-inner{width:calc(100% - 32px)}
 body.ito-company .ito-service-hero{min-height:0;padding:35px 0 0;display:flex;flex-direction:column}
 body.ito-company .ito-service-hero .ito-service-hero-image{position:relative;inset:auto;width:100%;height:240px;z-index:0;order:2;margin-top:12px}
 body.ito-company .ito-service-hero .ito-service-hero-image img{object-position:72% 54%}
 body.ito-company .ito-service-hero::before{background:linear-gradient(180deg,#f3fbf5 0%,rgba(243,251,245,.98) 60%,rgba(243,251,245,0) 100%)}
 body.ito-company .ito-service-hero .ito-service-hero-copy{position:relative;z-index:1;order:1;padding:0}
 body.ito-company .ito-service-hero .ito-service-hero-copy>h1{font-size:clamp(30px,6.5vw,44px);max-width:100%}
 body.ito-company .ito-service-hero .ito-svc-lead{font-size:16px;max-width:100%}
 body.ito-company .ito-svc-value-grid{display:grid!important;grid-template-columns:1fr;gap:12px!important}
 body.ito-company .ito-svc-value-grid>.wp-block-column{border-right:0;border-bottom:1px solid #d2e7d6;padding:8px 0 12px}
 body.ito-company .ito-svc-value-grid>.wp-block-column:last-child{border:0}
 body.ito-company .ito-svc-split,body.ito-company .ito-svc-cta-grid{grid-template-columns:1fr;gap:24px}
 body.ito-company .ito-svc-solutions-grid{grid-template-columns:1fr}
 body.ito-company .ito-svc-partner .ito-svc-partner-grid>.ito-svc-split-media{order:2}
 body.ito-company .ito-svc-partner .ito-svc-partner-grid>.ito-svc-split-copy{order:1}
 body.ito-company .ito-svc-last-cta>.ito-svc-inner{padding:25px 24px}
 body.ito-company .ito-svc-cta-title{border-right:0;border-bottom:1px solid rgba(255,255,255,.4);padding:0 0 20px}
}
@media(max-width:460px){
 body.ito-company .ito-svc-inner{width:calc(100% - 24px)}
 body.ito-company .ito-service-hero{padding-top:25px}
 body.ito-company .ito-service-hero .ito-service-hero-copy>h1{font-size:29px;line-height:1.12}
 body.ito-company .ito-service-hero .ito-service-hero-image{height:200px}
 body.ito-company .ito-svc-section .wp-block-button{width:100%}
 body.ito-company .ito-svc-section .wp-block-button__link{width:100%;min-height:44px}
 body.ito-company .ito-svc-value-strip{padding:12px 0 24px}
 body.ito-company .ito-svc-problem,body.ito-company .ito-svc-partner{padding:26px 0 30px}
 body.ito-company .ito-svc-split-copy h2,body.ito-company .ito-svc-solutions .ito-svc-inner>h2{font-size:26px}
 body.ito-company .ito-svc-split-copy>p{font-size:15px}
 body.ito-company .ito-svc-split-media .ito-svc-photo{height:220px}
 body.ito-company .ito-svc-solutions{padding:30px 0}
 body.ito-company .ito-svc-solution-card{grid-template-columns:52px 1fr;gap:12px;padding:15px 13px;min-height:105px}
 body.ito-company .ito-svc-solution-card>.ito-svc-icon{width:50px;height:50px;padding:9px}
 body.ito-company .ito-svc-solution-card .ito-svc-feature-copy h3{font-size:17px}
 body.ito-company .ito-svc-proof-grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:14px!important}
 body.ito-company .ito-svc-last-cta{padding-bottom:34px}
 body.ito-company .ito-svc-last-cta h2{font-size:27px}
 body.ito-company .ito-svc-last-cta .ito-svc-cta-copy p{font-size:15px}
}
@media(prefers-reduced-motion:reduce){body.ito-company .ito-svc-section .wp-block-button__link{transition:none;transform:none}}

/* Editing: keep the complete set of Gutenberg controls and editable nested blocks visible. */
.editor-styles-wrapper .ito-svc-section{margin:14px 0!important;border:1px dashed #cfe4d4;padding:14px;box-sizing:border-box;}
.editor-styles-wrapper .ito-service-hero .ito-service-hero-image{position:relative;width:100%;height:220px;z-index:auto}
.editor-styles-wrapper .ito-svc-inner{width:100%;max-width:100%}
.editor-styles-wrapper .ito-svc-section h1,.editor-styles-wrapper .ito-svc-section h2{color:#14211b}
/* v19 finishing overrides: stable columns without depending on Astra block-library CSS. */
body.ito-company .ito-svc-value-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:0!important;}
body.ito-company .ito-svc-last-cta .ito-svc-cta-secondary.is-style-outline .wp-block-button__link,
body.ito-company .ito-content .ito-svc-last-cta .ito-svc-cta-secondary.is-style-outline .wp-block-button__link{color:#fff!important;border:1px solid rgba(255,255,255,.9)!important;background:transparent!important}
body.ito-company .ito-svc-last-cta .ito-svc-cta-secondary.is-style-outline .wp-block-button__link:hover{background:rgba(255,255,255,.17)!important}
@media(max-width:790px){body.ito-company .ito-svc-value-grid{grid-template-columns:1fr}}
