/*
Theme Name: Newin
Template: twentytwentyfive
Version: 1.0
Text Domain: newin
*/

img { border-radius: 20px; }

.wp-block-button__link {
	border-radius: 999px !important;
    	text-transform: uppercase;
        	font-weight: 600;
            	font-size: 12px
                .newin-eyebrow{color:#931F21;font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;margin:0 0 8px;}
                .newin-trust-icon{margin-bottom:16px;}
                .newin-service-row .wp-block-column{margin:0;}
                .newin-service-row .newin-audience-label{margin-bottom:16px;}
                ;
                	letter-spacing: 0.05em;
                    	padding: 13px 28px !important;
                        }
                        
                        .newin-audience-label {
                        	display: inline-flex;
                            	align-items: center;
                                	gap: 8px;
                                    	text-transform: uppercase;
                                        	font-size: 12px;
                                            	font-weight: 600;
                                                	letter-spacing: 0.03em;
                                                    }
                                                    
                                                    .newin-audience-label img {
                                                    	width: 28px;
                                                        	height: 28px;
                                                            	border-radius: 0;
                                                                }
                                                                
                                                                .newin-kpi-number {
                                                                	font-size: 44px;
                                                                    	font-weight: 700;
                                                                        	color: #931F21;
                                                                            	line-height: 1;
                                                                                	margin: 0;
                                                                                    }
                                                                                    
                                                                                    .newin-kpi-label {
                                                                                    	font-size: 12px;
                                                                                        	text-transform: uppercase;
                                                                                            	letter-spacing: 0.02em;
                                                                                                	margin: 0;
                                                                                                    }
                                                                                                    
                                                                                                    .newin-trust-card {
                                                                                                    	text-align: center;
                                                                                                        }
                                                                                                        
                                                                                                        .newin-trust-card img {
                                                                                                        	width: 40px;
                                                                                                            	height: 40px;
                                                                                                                	margin: 0 auto 12px;
                                                                                                                    	border-radius: 0;
                                                                                                                        }
                                                                                                                        
                                                                                                                        .newin-logo-row img {
                                                                                                                        	max-height: 48px;
                                                                                                                            	width: auto;
                                                                                                                                	border-radius: 0;
                                                                                                                                    	filter: grayscale(100%);
                                                                                                                                        	opacity: 0.75;
                                                                                                                                            }
                                                                                                                                            
                                                                                                                                            .newin-hero-cover {
                                                                                                                                            	position: relative;
                                                                                                                                                }
                                                                                                                                                
                                                                                                                                                .newin-hero-cover::after {
                                                                                                                                                	content: "";
                                                                                                                                                    	position: absolute;
                                                                                                                                                        	inset: 0;
                                                                                                                                                            	background: linear-gradient(180deg, rgba(25,25,23,0.10) 0%, rgba(25,25,23,0.65) 100%);
                                                                                                                                                                	pointer-events: none;
                                                                                                                                                                    } body.home header.wp-block-template-part{position:fixed;top:0;left:0;right:0;z-index:200;background:transparent!important;} body.home header.wp-block-template-part .wp-block-navigation-item>a,body.home header.wp-block-template-part .wp-block-navigation__submenu-icon,body.home header.wp-block-template-part .wp-block-site-title,body.home header.wp-block-template-part .wp-block-site-title a{color:#fff!important;} .newin-logo-row img{max-height:88px;width:auto;border-radius:0;filter:none;opacity:1;} .newin-service-row img{border-radius:0!important;height:100%;object-fit:cover;} .newin-service-row{min-height:480px;} .newin-service-text{padding:60px;} .newin-kpi-number{font-size:56px;} .newin-trust-card{text-align:left;}
body.home .wp-block-post-title{display:none;}
body.home main.wp-block-group{margin-top:0!important;}
body.home main.wp-block-group>.wp-block-group.has-global-padding{padding-top:0!important;}
body.home .entry-content.has-global-padding{margin-top:0!important;}
body.home.newin-scrolled header.wp-block-template-part{background:rgba(25,25,23,0.92)!important;backdrop-filter:blur(6px);transition:background .2s;}
body.home header.wp-block-template-part{transition:background .2s;}
/* === Redesign pass 2 === */
body.home .entry-content > *{margin-top:0!important;}

/* Hero */
.newin-hero-cover .wp-block-cover__inner-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;position:relative;}
.newin-hero-inner{text-align:center;}
.newin-hero-btn .wp-block-button__link{padding:11px 26px!important;font-size:13px!important;}
.newin-hero-kpi{margin-top:70px;padding-top:28px;border-top:1px solid rgba(255,255,255,0.25);gap:56px;}
.newin-hero-kpi .newin-kpi-number{color:#fff;font-size:30px;font-weight:800;margin:0;}
.newin-hero-kpi .newin-kpi-label{color:#fff;opacity:.8;font-size:11px;letter-spacing:.06em;text-transform:uppercase;margin:0;max-width:220px;}
.newin-hero-kpi-item{text-align:center;}

/* Eyebrow / accents */
.newin-eyebrow-accent{display:flex;align-items:center;gap:10px;margin-bottom:14px;}
.newin-eyebrow{color:#C46A3F;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin:0;}
.newin-eyebrow-dark{color:#C46A3F;}

/* About section */
.newin-about-section{position:relative;}
.newin-about-text{border-left:4px solid #C46A3F;padding-left:32px;}
.newin-about-image img{border-radius:16px;}

/* Services */
.newin-service-row{min-height:520px;}
.newin-service-text{padding:64px;}
.newin-service-text h3{margin-top:14px;}
.newin-service-row .newin-audience-label{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;}
.newin-service-imgwrap{position:relative;height:100%;overflow:hidden;}
.newin-service-imgwrap img{height:100%;width:100%;object-fit:cover;border-radius:0!important;display:block;}
.newin-service-imgwrap::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg, rgba(196,106,63,0.28) 0%, rgba(25,25,23,0.15) 45%, transparent 75%);pointer-events:none;}
.newin-service-row .wp-block-column{margin:0;}

/* Trust */
.newin-trust-card{padding:8px 16px;}
.newin-trust-icon{margin-bottom:18px;}
.newin-trust-card p{opacity:.85;}

/* Logo strip */
.newin-logo-row img{max-height:70px;width:auto;border-radius:0;filter:none;opacity:.85;}

/* Contact */
.newin-contact-image img{border-radius:16px;}
.newin-contact-label{margin-bottom:2px;color:#C46A3F;font-size:12px;letter-spacing:.04em;text-transform:uppercase;}

/* === Redesign pass 3 (client feedback round 2) === */

/* KPI strip (standalone section before About, flashier design) */
.newin-kpi-strip{position:relative;}
.newin-kpi-row{gap:40px;}
.newin-kpi-item{text-align:center;position:relative;padding:0 32px;}
.newin-kpi-item:not(:last-child)::after{content:"";position:absolute;right:0;top:50%;transform:translateY(-50%);width:1px;height:36px;background:rgba(196,106,63,0.35);}
.newin-kpi-number{color:#C46A3F!important;font-size:42px!important;font-weight:800!important;margin:0!important;line-height:1!important;}
.newin-kpi-label{color:#fff!important;opacity:.75;font-size:11px;letter-spacing:.06em;text-transform:uppercase;margin:8px 0 0!important;max-width:200px;}
.newin-kpi-placeholder{opacity:.32;}

/* About section: no border accent, bigger icon-free NEWIN label, red heading, black body */
.newin-about-text{border-left:none!important;padding-left:0!important;}
.newin-eyebrow-big{font-size:19px!important;font-weight:800!important;letter-spacing:.05em!important;color:#C46A3F!important;margin:0 0 14px!important;}
.newin-about-heading{color:#931F21!important;}
.newin-about-body{color:#191917!important;opacity:1!important;}

/* Services: uniform light background, rounded images, fixed padding/grid */
.newin-service-row{min-height:auto;}
.newin-service-imgwrap{min-height:420px;}
.newin-service-imgwrap img{border-radius:16px!important;}
.newin-service-imgwrap::after{border-radius:16px;}
.newin-service-text{padding:56px 64px;}
.newin-service-text h3{color:#191917!important;}
.newin-service-text p{color:#191917!important;}

/* Trust cards: icon + tag on same line */
.newin-trust-head{display:flex;align-items:center;gap:12px;margin-bottom:16px;}
.newin-trust-icon{margin-bottom:0!important;display:inline-flex;line-height:0;}
.newin-trust-icon svg{display:block;}

/* Logo strip: bigger logos, room for 5th logo */
.newin-logo-row{gap:60px!important;}
.newin-logo-row img{max-height:96px!important;}

/* === Redesign pass 4 (client feedback round 3) === */

/* Hero: KPI overlay on image, horizontal, tight, red numbers, bigger labels */
.newin-hero-heading{color:#fff!important;font-weight:500!important;font-size:76px!important;line-height:1.08!important;}
.newin-hero-kpi{margin-top:72px!important;padding-top:36px;border-top:1px solid rgba(255,255,255,0.25);gap:0!important;row-gap:28px;align-items:flex-start!important;}
.newin-hero-kpi-item{text-align:center;padding:0 32px;position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;width:180px;}
.newin-hero-kpi-item:not(:last-child)::after{content:"";position:absolute;right:0;top:0;height:100%;width:1px;background:rgba(255,255,255,0.25);}
.newin-hero-kpi-item .newin-kpi-number{color:#fff!important;font-size:46px!important;font-weight:800!important;margin:0!important;}
.newin-hero-kpi-item .newin-kpi-label{color:#fff!important;opacity:.85;font-size:14px!important;letter-spacing:.04em;text-transform:uppercase;margin:0!important;max-width:170px;text-align:center;line-height:1.3;}

/* Nav CTA button: match hero button size */
header.wp-block-template-part .wp-block-buttons .wp-block-button__link{padding:11px 26px!important;font-size:13px!important;}

/* About: bigger heading (not bold), bigger body */
.newin-about-heading{font-weight:500!important;font-size:44px!important;line-height:1.15!important;color:#191917!important;}
.newin-about-body{font-size:18px!important;color:#191917!important;opacity:1!important;}

/* Extra air after the services block, before Trust */
.newin-service-row:last-of-type{margin-bottom:0;}

/* Services: bigger headings/text */
.newin-service-text h3{font-size:36px!important;}
.newin-service-text p{font-size:18px!important;}

/* Trust: bigger heading/text, lighter body copy */
.newin-trust-heading{font-size:26px!important;}
.newin-trust-body{color:#F5F4EE!important;opacity:.9!important;font-size:16px!important;}

/* Contact: bigger heading */
body.home .entry-content h2{font-size:38px!important;}

/* === Redesign pass 5 (client feedback round 4) === */

/* About: heading red again, red outline button, text spread to match image height */
.newin-about-heading{color:#931F21!important;font-weight:500!important;font-size:44px!important;line-height:1.15!important;}
.newin-about-text{height:100%;}
.newin-about-body-wrap{margin:28px 0;}
.newin-btn-red-outline .wp-block-button__link{color:#931F21!important;border-color:#931F21!important;}

/* Services: vertical centering handled by block attribute; tidy text centering */
.newin-service-text{display:flex;flex-direction:column;justify-content:center;}

/* Logo strip: heading in terracotta, spacing cleanup, button */
.newin-logo-strip-heading{color:#C46A3F!important;font-size:20px!important;font-weight:700!important;margin:0 0 40px!important;line-height:1.4;}
.newin-logo-row{margin-bottom:40px;}
.newin-logo-strip .wp-block-column,
.newin-logo-strip .wp-block-group{margin:0;}
.newin-logo-strip-btn{margin-top:8px;}

/* === Redesign pass 6 (client feedback round 5) === */

/* Hero: correct layering image -> gradient -> text (custom overlay, no block-level dim) */
.newin-hero-cover{position:relative;}
.newin-hero-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(25,25,23,0.10) 0%, rgba(25,25,23,0.32) 40%, rgba(25,25,23,0.80) 100%);pointer-events:none;z-index:1;}
.newin-hero-cover > .wp-block-cover__inner-container{position:relative;z-index:2;}
.newin-hero-cover .wp-block-cover__image-background{z-index:0;}

/* About: natural spacing, not forced edge alignment */
.newin-about-text{height:auto;}
.newin-about-heading{margin-bottom:24px!important;}
.newin-about-body-wrap{margin:0 0 28px!important;}
.newin-about-body + .newin-about-body{margin-top:14px;}

/* Services: reinforce vertical centering on every row, consistently */
.newin-service-row .wp-block-columns{align-items:center!important;}
.newin-service-text{display:block;}

/* Logo strip heading: correct font (site heading font), size, centered */
.newin-logo-strip-heading{
	color:#191917!important;
	font-size:34px!important;
	font-weight:400!important;
	line-height:1.25!important;
	text-align:center!important;
	max-width:760px;
	margin:0 auto 44px!important;
}

/* Logo strip button: compact, correct spacing */
.newin-logo-strip-btn{margin-top:36px!important;}
.newin-btn-dark-outline.wp-block-buttons .wp-block-button__link,
.newin-logo-strip-btn .wp-block-button__link{
	color:#931F21!important;
	border-color:#931F21!important;
	padding:11px 26px!important;
	font-size:13px!important;
}

/* === Redesign pass 7 (client feedback round 6) === */

/* About: more generous spacing between heading/body/button so the block visually fills against the image */
.newin-about-heading{margin-bottom:32px!important;}
.newin-about-body-wrap{margin:0 0 40px!important;}
.newin-about-body{margin-bottom:0!important;}
.newin-about-body + .newin-about-body{margin-top:20px!important;}
.newin-about-text .wp-block-buttons{margin-top:8px;}

/* About "Loe rohkem" button: compact size, matching the site's small-button pattern */
.newin-btn-red-outline .wp-block-button__link{
	padding:11px 26px!important;
	font-size:13px!important;
}

/* === Redesign pass 8/9: KPI white, About text stays LEFT-aligned but block is truly vertically centered against the image === */
.newin-about-text{text-align:left!important;}
.newin-about-text .wp-block-buttons{justify-content:flex-start!important;}
.newin-about-section .wp-block-columns{align-items:stretch!important;}
.newin-about-text{display:flex!important;flex-direction:column!important;justify-content:center!important;height:100%!important;}

/* === Redesign pass 10: Footer === */
.newin-footer-main{color:#F5F4EE;}
.newin-footer-main .wp-block-column{min-width:0;}

.newin-footer-brand{margin-bottom:8px;}
.newin-footer-brand img{display:block;margin-bottom:20px;}
.newin-footer-company-name{color:#fff!important;font-size:17px!important;font-weight:500!important;margin:0 0 6px!important;line-height:1.3;}
.newin-footer-company-reg{color:#D3C9BA!important;opacity:.75;font-size:13px!important;margin:0!important;line-height:1.4;}

.newin-footer-dept-title{color:#C46A3F!important;font-size:13px!important;font-weight:700!important;letter-spacing:.05em;text-transform:uppercase;margin:0 0 18px!important;}

.newin-footer-field{margin-bottom:14px;}
.newin-footer-field:last-child{margin-bottom:0;}
.newin-footer-field-label{color:#D3C9BA!important;opacity:.6;font-size:12px!important;letter-spacing:.03em;text-transform:uppercase;margin:0 0 3px!important;line-height:1.3;}
.newin-footer-field-value{color:#F5F4EE!important;font-size:14.5px!important;margin:0!important;line-height:1.4;}
.newin-footer-field-value a{color:#F5F4EE!important;text-decoration:none;}
.newin-footer-field-value a:hover{color:#C46A3F!important;text-decoration:underline;}

.newin-footer-row{margin-bottom:0!important;}
.newin-footer-row-2{margin-top:44px!important;}

.newin-footer-bottom{}
.newin-footer-copyright{color:#D3C9BA!important;opacity:.7;font-size:13px!important;margin:0!important;text-align:center;}

/* === Redesign pass 11: Ettevõttest page === */
body.page-id-726 h1.wp-block-post-title{display:none!important;}

/* Page hero */
.newin-page-hero-cover{position:relative;}
.newin-page-hero-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(25,25,23,0.15) 0%, rgba(25,25,23,0.55) 100%);pointer-events:none;z-index:1;}
.newin-page-hero-cover > .wp-block-cover__inner-container{position:relative;z-index:2;}
.newin-page-hero-cover .wp-block-cover__image-background{z-index:0;}
.newin-page-hero-heading{color:#fff!important;font-weight:500!important;font-size:52px!important;margin:0!important;}
.newin-page-hero-inner{padding-left:24px;padding-right:24px;}

/* Feature strip (4 cards) */
.newin-feat-row{gap:40px!important;}
.newin-feat-card{height:100%;}
.newin-feat-icon{display:block;color:#931F21;margin-bottom:14px;}
.newin-feat-heading{font-size:24px!important;font-weight:500!important;color:#191917!important;margin:0 0 10px!important;}
.newin-feat-body{font-size:15.5px!important;color:#191917;opacity:.75;line-height:1.55;margin:0!important;}

/* Meist section reuses .newin-about-* rules already defined */

/* Certificates */
.newin-cert-head{margin:0 auto 48px!important;}
.newin-cert-heading{font-size:38px!important;font-weight:500!important;color:#191917!important;margin:14px 0!important;line-height:1.2;}
.newin-cert-body{font-size:17px!important;color:#191917;opacity:.75;}
.newin-cert-images{gap:40px!important;margin-bottom:56px;align-items:start;}
.newin-cert-images .wp-block-column{display:flex;justify-content:center;}
.newin-cert-image img{max-width:260px;border-radius:8px;box-shadow:0 12px 30px rgba(0,0,0,.12);}
.newin-cert-badge-text{font-size:15.5px!important;color:#191917;opacity:.7;max-width:640px;margin:0 auto 36px!important;}
.newin-cert-badge-row{gap:44px!important;}
.newin-cert-badge-row img{max-height:56px;width:auto;border-radius:0;}

/* Tiles section */
.newin-tiles-head{margin:0 auto 48px!important;text-align:center;}
.newin-tiles-heading{font-size:38px!important;font-weight:500!important;color:#191917!important;margin:14px 0!important;line-height:1.2;text-align:center;}
.newin-tiles-intro{font-size:17px!important;color:#191917;opacity:.75;text-align:center;}
.newin-tiles-grid{display:flex;flex-direction:column;gap:28px;}
.newin-tile-row{gap:28px!important;}
.newin-tile{background:#931F21;border-radius:16px;padding:36px 32px;height:100%;}
.newin-tile-icon{display:block;color:#fff;margin-bottom:18px;opacity:.9;}
.newin-tile-heading{color:#fff!important;font-size:21px!important;font-weight:500!important;margin:0 0 10px!important;}
.newin-tile-body{color:#F5F4EE!important;opacity:.85;font-size:15px!important;line-height:1.55;margin:0!important;}

/* Contact fields (Ettevõttest reuse) */
.newin-contact-fields{gap:24px!important;}
.newin-contact-field{margin-bottom:0;}
.newin-contact-label{color:#191917;opacity:.55;font-size:12px!important;letter-spacing:.05em;text-transform:uppercase;margin:0 0 4px!important;}
.newin-contact-value{color:#191917!important;font-size:16px!important;font-weight:500!important;margin:0!important;}

/* === Redesign pass 12: Footer layout fix (match original 2-row grid) === */
.newin-footer-dept-wide{width:100%;}
.newin-footer-dept-fields-row{gap:16px 48px!important;margin-top:2px;}
.newin-footer-dept-fields-row .newin-footer-field{margin-bottom:0;}

/* === Redesign pass 13: Homepage polish round === */

/* 1+2. Hero KPI: wider items so middle label fits, equal rhythm heading->buttons->KPI */
.newin-hero-inner .wp-block-buttons{margin-top:40px!important;}
.newin-hero-kpi{margin-top:40px!important;padding-top:28px!important;}
.newin-hero-kpi-item{width:230px!important;}
.newin-hero-kpi-item .newin-kpi-label{max-width:210px!important;}

/* 3. About heading: keep size, reduce boldness to match other headings */
.newin-about-heading{font-weight:400!important;}

/* 4. About paragraphs/button: equal gaps */
.newin-about-body + .newin-about-body{margin-top:20px!important;}
.newin-about-text .wp-block-buttons{margin-top:20px!important;}

/* 5. Audience labels: a bit bigger */
.newin-audience-label{font-size:15px!important;}

/* 6. Middle service image: fill frame like the others */
.newin-service-row figure.wp-block-image{height:100%;margin:0;}
.newin-service-row figure.wp-block-image img{height:100%;width:100%;object-fit:cover;}
.newin-service-row .wp-block-columns .wp-block-column{align-self:stretch;}

/* 7. Trust section: individual dark tiles instead of one black band, centered */
.newin-trust-card{background:#191917;border-radius:20px;padding:48px 36px!important;text-align:center;}
.newin-trust-head{justify-content:center;margin-bottom:18px!important;}
.newin-trust-heading{text-align:center;}
.newin-trust-body{text-align:center;}

/* === Redesign pass 14: Trust tiles orange + service text vertical centering === */
.newin-trust-card{background:#C46A3F!important;}
.newin-trust-card .newin-trust-icon{color:#fff!important;}
.newin-trust-card .newin-eyebrow-dark{color:#fff!important;}
.newin-trust-body{opacity:.92!important;}

.newin-service-text{display:flex!important;flex-direction:column!important;justify-content:center!important;height:100%!important;}

/* === Redesign pass 15: Trust tiles sand color === */
.newin-trust-card{background:#D3C9BA!important;}
.newin-trust-card .newin-trust-icon{color:#931F21!important;}
.newin-trust-card .newin-eyebrow-dark{color:#931F21!important;}
.newin-trust-card .newin-trust-heading{color:#191917!important;}
.newin-trust-card .newin-trust-body{color:#191917!important;opacity:.75!important;}

/* === Redesign pass 16 (About image B&W) === */
.newin-about-image img{filter:grayscale(100%) contrast(1.05);}


/* === Redesign pass 17 (service row full-bleed images: square the edge corners) === */
.newin-service-row .wp-block-columns > .wp-block-column:first-child figure.wp-block-image img{border-top-left-radius:0!important;border-bottom-left-radius:0!important;}
.newin-service-row .wp-block-columns > .wp-block-column:last-child figure.wp-block-image img{border-top-right-radius:0!important;border-bottom-right-radius:0!important;}


/* === Redesign pass 18: sticky header + hero flush-top fix for Ettevõttest (page-id-726) === */
body.page-id-726 header.wp-block-template-part{position:fixed;top:0;left:0;right:0;z-index:200;background:transparent!important;transition:background .2s;}
body.page-id-726 header.wp-block-template-part .wp-block-navigation-item>a,
body.page-id-726 header.wp-block-template-part .wp-block-navigation__submenu-icon,
body.page-id-726 header.wp-block-template-part .wp-block-site-title,
body.page-id-726 header.wp-block-template-part .wp-block-site-title a{color:#fff!important;}
body.page-id-726.newin-scrolled header.wp-block-template-part{background:rgba(25,25,23,0.92)!important;backdrop-filter:blur(6px);}
body.page-id-726 main.wp-block-group{margin-top:0!important;}
body.page-id-726 main.wp-block-group>.wp-block-group.has-global-padding{padding-top:0!important;}
body.page-id-726 .entry-content.has-global-padding{margin-top:0!important;}
body.page-id-726 .entry-content > *{margin-top:0!important;}

/* === Redesign pass 19: center H1/H3 headings on Ettevõttest === */
body.page-id-726 .newin-page-hero-heading{text-align:center!important;}
body.page-id-726 .newin-feat-heading{text-align:center!important;}
body.page-id-726 .newin-tile-heading{text-align:center!important;}


/* === Redesign pass 20: center hero H1 block within its container on Ettevõttest === */
body.page-id-726 .newin-page-hero-heading{margin-left:auto!important;margin-right:auto!important;max-width:100%!important;}


/* === Redesign pass 21 (fixed): top-align 'Usaldusväärne partner elektritöödel' columns on Ettevõttest — removes vertical-center gap above/below the image without stretching/collapsing it === */
body.page-id-726 .newin-about-section .wp-block-columns{align-items:flex-start!important;}


/* === Redesign pass 22: center remaining H2 headings on Ettevõttest (cert + tiles section titles) — text-align plus block self-centering since these blocks are narrower than their container === */
body.page-id-726 .newin-cert-heading{text-align:center!important;margin-left:auto!important;margin-right:auto!important;}
body.page-id-726 .newin-tiles-heading{text-align:center!important;margin-left:auto!important;margin-right:auto!important;}


/* === Redesign pass 23: revert feature-strip headings on Ettevõttest to left-aligned (Kaitseme keskkonda / Hoiame standardeid / 17 aastat kogemust / Hoiame oma töötajaid) === */
body.page-id-726 .newin-feat-heading{text-align:left!important;}


/* === Redesign pass 24: left-align red tile headings on Ettevõttest to match their body text (ISO standardid / Püsiv kvaliteet / Nõuded / etc) === */
body.page-id-726 .newin-tile-heading{text-align:left!important;margin-left:0!important;margin-right:0!important;}


/* === Redesign pass 25: Kontakt page (post-id 1567) rebuild from raw Classic-editor content to native blocks === */
body.page-id-1567 h1.wp-block-post-title{display:none!important;}

/* Sticky header + hero flush-top (same treatment as Ettevõttest) */
body.page-id-1567 header.wp-block-template-part{position:fixed;top:0;left:0;right:0;z-index:200;background:transparent!important;transition:background .2s;}
body.page-id-1567 header.wp-block-template-part .wp-block-navigation-item>a,
body.page-id-1567 header.wp-block-template-part .wp-block-navigation__submenu-icon,
body.page-id-1567 header.wp-block-template-part .wp-block-site-title,
body.page-id-1567 header.wp-block-template-part .wp-block-site-title a{color:#fff!important;}
body.page-id-1567.newin-scrolled header.wp-block-template-part{background:rgba(25,25,23,0.92)!important;backdrop-filter:blur(6px);}
body.page-id-1567 main.wp-block-group{margin-top:0!important;}
body.page-id-1567 main.wp-block-group>.wp-block-group.has-global-padding{padding-top:0!important;}
body.page-id-1567 .entry-content.has-global-padding{margin-top:0!important;}
body.page-id-1567 .entry-content > *{margin-top:0!important;}

/* Center hero H1 block within its container */
body.page-id-1567 .newin-page-hero-heading{text-align:center!important;margin-left:auto!important;margin-right:auto!important;max-width:100%!important;}

/* Center the Meeskond section heading block within its container */
body.page-id-1567 .newin-tiles-heading{margin-left:auto!important;margin-right:auto!important;}

/* Team grid + cards */
.newin-team-grid{gap:24px!important;margin-top:8px;}
.newin-team-card{background:#fff;border:1px solid #ECEAE4;border-radius:16px;padding:28px 24px;height:100%;}
.newin-team-name{font-size:20px!important;font-weight:600!important;color:#191917!important;margin:0 0 4px!important;line-height:1.25;text-align:left;}
.newin-team-role{color:#931F21;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;margin:0 0 18px!important;}
.newin-team-contact{display:flex;align-items:center;gap:10px;margin:0 0 10px!important;font-size:14px;}
.newin-team-contact:last-child{margin-bottom:0!important;}
.newin-team-contact a{color:#191917;text-decoration:none;word-break:break-word;}
.newin-team-contact a:hover{color:#931F21;text-decoration:underline;}
.newin-team-icon{width:16px;height:16px;flex:0 0 16px;fill:#931F21;}


/* === Redesign pass 26: Kontakt page spacing — gap between hero and contact info, and between contact info and Meeskond === */
body.page-id-1567 .newin-contact-section{margin-top:64px!important;margin-bottom:64px!important;}
body.page-id-1567 .newin-team-section{margin-top:0;padding-top:0;}


/* === Redesign pass 27: center the footer copyright line (block was flush-left within a wider container despite text-align:center) === */
.newin-footer-copyright{margin-left:auto!important;margin-right:auto!important;text-align:center!important;}


/* === Redesign pass 28: Kontakt page — more space between hero and Meeskond section, and sand-colored team cards === */
body.page-id-1567 .newin-team-section{margin-top:64px!important;}
.newin-team-card{background:#D3C9BA!important;border:none!important;}

/* === Redesign pass 29: homepage service rows - uniform, narrower images === */
.newin-service-row .wp-block-column:has(.newin-service-imgwrap){flex:0 0 38%!important;max-width:38%!important;}
.newin-service-row .wp-block-column:has(.newin-service-text){flex:1 1 auto!important;}
.newin-service-img{height:420px!important;}
.newin-service-img img{width:100%!important;height:420px!important;object-fit:cover!important;}

/* === Redesign pass 30: nav menu links - remove ugly focus box/underline, add bold + red underline interaction === */
header.wp-block-template-part .wp-block-navigation-item__content{position:relative;outline:none!important;box-shadow:none!important;text-decoration:none!important;transition:font-weight .15s ease;}
header.wp-block-template-part .wp-block-navigation-item__content:focus,
header.wp-block-template-part .wp-block-navigation-item__content:focus-visible,
header.wp-block-template-part .wp-block-navigation-item__content:active{outline:none!important;box-shadow:none!important;text-decoration:none!important;}
header.wp-block-template-part .wp-block-navigation-item__content::after{content:"";position:absolute;left:0;bottom:-6px;width:100%;height:2px;background:#931F21;transform:scaleX(0);transform-origin:left;transition:transform .25s ease;}
header.wp-block-template-part .wp-block-navigation-item__content:hover,
header.wp-block-template-part .wp-block-navigation-item__content:focus-visible{font-weight:600!important;}
header.wp-block-template-part .wp-block-navigation-item__content:hover::after,
header.wp-block-template-part .wp-block-navigation-item__content:focus-visible::after{transform:scaleX(1);}

/* === Redesign pass 31: white stripe before footer, hero image square top corners, KPI dividers removed === */
footer.wp-block-template-part{margin-top:0!important;}
.newin-hero-cover img,.newin-page-hero-cover img{border-radius:0!important;}
.newin-hero-kpi{border-top:none!important;}
.newin-hero-kpi-item::after{display:none!important;}
/* === Redesign pass 31b: department cards on Kontakt page === */
.newin-dept-grid{gap:20px!important;margin-top:8px;}
.newin-dept-card{background:#fff;border:1px solid #ECEAE4;border-radius:16px;padding:24px 22px;height:100%;}
.newin-dept-title{font-size:18px!important;font-weight:600!important;color:#931F21!important;margin:0 0 16px!important;line-height:1.25;text-align:left;text-transform:none;}
.newin-dept-field{margin:0 0 12px!important;}
.newin-dept-field:last-child{margin-bottom:0!important;}
.newin-dept-field-label{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#8A8A85;margin:0 0 2px!important;}
.newin-dept-field-value{font-size:14px;color:#191917;margin:0!important;line-height:1.4;}
body.page-id-1567 .newin-dept-section{margin-top:64px!important;margin-bottom:64px!important;}

/* === Redesign pass 32: Kontakt page - wide red department tiles, contact section without image, map section === */
.newin-dept-grid{flex-wrap:wrap!important;row-gap:24px!important;}
.newin-dept-grid > .wp-block-column{flex:0 0 50%!important;max-width:50%!important;}
.newin-dept-card{background:#931F21!important;border:none!important;border-radius:20px!important;padding:40px 36px!important;}
.newin-dept-title{color:#fff!important;font-size:24px!important;margin-bottom:24px!important;}
.newin-dept-field-label{color:rgba(245,244,238,0.62)!important;}
.newin-dept-field-value{color:#F5F4EE!important;font-size:15px!important;}
body.page-id-1567 .newin-contact-section{margin-top:0!important;}
.newin-map-section{margin-top:0;}
.newin-map-wrap{max-width:900px;margin:0 auto;}
.newin-map-wrap svg{width:100%;height:auto;display:block;}


/* === Redesign pass 33: fix Kontakt dept-section collapsing to default content width === */
.newin-dept-section{max-width:1200px!important;width:100%!important;margin-left:auto!important;margin-right:auto!important;}


/* === Redesign pass 34: fix dept tiles wrapping to 1/row due to 20px gap overflow at flex:0 0 50% === */
.newin-dept-grid > .wp-block-column{flex:0 0 calc(50% - 10px)!important;max-width:calc(50% - 10px)!important;}


/* === Redesign pass 35: Kontakt - dept section as 3-col grid with map+empty tile, contact heading centered/H3 fields === */
body.page-id-1567 .newin-contact-section h2{text-align:center!important;}
.newin-contact-value{font-size:22px!important;font-weight:600!important;color:#191917!important;line-height:1.3!important;}

.newin-dept-grid3{display:grid!important;grid-template-columns:repeat(3,1fr)!important;column-gap:20px!important;row-gap:24px!important;margin-top:24px;}
.newin-dept-grid3 > .wp-block-column{width:auto!important;max-width:none!important;flex:none!important;margin:0!important;}
.newin-map-tile{background:#F5F4EE;border:1px solid #ECEAE4;border-radius:20px;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:20px;height:100%;box-sizing:border-box;}
.newin-map-tile svg{width:100%;height:auto;display:block;}
.newin-dept-empty-tile{background:transparent;}


/* === Redesign pass 36: bigger map, HQ tile styling, uniform dept-card height, contact heading removed spacing === */
.newin-map-tile{padding:10px;}
.newin-map-tile svg{width:100%!important;height:auto!important;aspect-ratio:50/27;max-width:100%!important;}

.newin-hq-tile{background:#F5F4EE;border:1px solid #ECEAE4;border-radius:20px;padding:28px 26px;height:100%;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;}
.newin-hq-title{font-size:17px!important;font-weight:600!important;color:#191917!important;margin:0 0 14px!important;line-height:1.35;}
.newin-hq-value{font-size:15px!important;color:#4A4A46!important;margin:0 0 6px!important;line-height:1.4;}
.newin-hq-value:last-child{margin-bottom:0!important;}

.newin-dept-card{min-height:380px!important;box-sizing:border-box;}

body.page-id-1567 .newin-contact-section{padding-top:8px;}


/* === Redesign pass 37: fix map svg width (parent .newin-map-wrap had auto width, breaking width:100% on svg) === */
.newin-map-tile .newin-map-wrap{width:100%!important;}


/* === Redesign pass 38: spacing hero->dept, red-tag HQ tile redesign, red border on map tile === */
body.page-id-1567 .newin-dept-section{margin-top:96px!important;margin-bottom:64px!important;}

.newin-hq-label{font-size:12px!important;font-weight:700!important;letter-spacing:.08em;text-transform:uppercase;color:#931F21!important;margin:0 0 6px!important;}
.newin-hq-address{font-size:20px!important;font-weight:600!important;color:#191917!important;margin:0 0 18px!important;line-height:1.3;}
.newin-hq-tags{display:flex;flex-direction:column;gap:10px;}
.newin-hq-tag{display:inline-flex;align-items:center;gap:8px;background:#931F21;color:#fff;font-size:13px;font-weight:600;padding:8px 14px;border-radius:999px;width:fit-content;max-width:100%;box-sizing:border-box;}
.newin-hq-tag-icon{width:13px!important;height:13px!important;min-width:13px;flex-shrink:0;fill:#fff;display:inline-block;}

.newin-map-tile{border:2px solid #931F21!important;}


/* === Redesign pass 39: team cards from sand/tan to beige to match other light tiles === */
.newin-team-card{background:#F5F4EE!important;border:1px solid #ECEAE4!important;}


/* === Redesign pass 40: fix white stripe before footer when page's last content block is alignfull (e.g. Ettevõttest "Võta ühendust") - the content wrapper's own 70px bottom padding was showing through below full-bleed sections */
.entry-content:has(> :last-child.alignfull){padding-bottom:0!important;}
main > .wp-block-group.has-global-padding:has(> .entry-content > :last-child.alignfull){padding-bottom:0!important;}


/* === Redesign pass 41: homepage contact CTA button size matches other secondary buttons, Kontakt page spacing after Meeskond before footer === */
.newin-contact-cta .wp-block-button__link{font-size:13px!important;padding:11px 26px!important;}

body.page-id-1567 .newin-team-section{margin-bottom:80px!important;}


/* === Redesign pass 42: company registration details (rekvisiidid) inside Peakontor tile === */
.newin-hq-reg{margin-top:18px;padding-top:14px;border-top:1px solid #ECEAE4;}
.newin-hq-reg-name{font-size:13px!important;font-weight:600!important;color:#4A4A46!important;margin:0 0 4px!important;line-height:1.4;}
.newin-hq-reg-line{font-size:12px!important;color:#8A8A85!important;margin:0!important;line-height:1.5;}


/* === Redesign pass 43: homepage about-section restructure - main heading (H1) moved above image+text row, bigger/wider section === */
.newin-about-section{padding-top:96px!important;padding-bottom:96px!important;}
.newin-about-section > .newin-about-heading{font-size:44px!important;line-height:1.2!important;max-width:900px;margin:0 auto 56px!important;}
.newin-about-subheading{margin-top:20px!important;}
.newin-about-text .newin-about-subheading:first-child{margin-top:0!important;}
.newin-about-image{border-radius:20px;overflow:hidden;}
.newin-about-image img{width:100%;height:100%;object-fit:cover;}

/* === Redesign pass 44: about-section heading resize + ISO badges === */
.newin-about-section > .newin-about-heading{font-size:76px!important;font-weight:500!important;line-height:82px!important;max-width:1300px!important;}
.newin-about-subheading{font-size:26px!important;line-height:1.4!important;font-weight:400!important;}
.newin-about-cta-row{display:flex!important;align-items:center;flex-wrap:wrap;gap:16px;margin-top:28px;}
.newin-iso-tags{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.newin-iso-tag{display:inline-flex;align-items:center;background:#F5F4EE;border:1px solid #ECEAE4;color:#4A4A46;font-size:12px;font-weight:600;letter-spacing:.03em;padding:7px 14px;border-radius:999px;white-space:nowrap;}

/* === Redesign pass 45: about-section full-width heading fit === */
.newin-about-section.alignfull{padding-left:32px!important;padding-right:32px!important;box-sizing:border-box;}
.newin-about-section > .newin-about-heading{max-width:1700px!important;}
.newin-about-section > .wp-block-columns{max-width:1200px!important;margin-left:auto!important;margin-right:auto!important;}

/* === Redesign pass 46: fix specificity so about-subheading resize actually applies === */
body.home .entry-content h2.newin-about-subheading{font-size:26px!important;line-height:1.4!important;font-weight:400!important;}

/* === Redesign pass 47: revert about-heading to H2/H3, intermediate custom size, redesign ISO boxes === */
body.home .entry-content h2.newin-about-heading{font-size:52px!important;line-height:1.15!important;font-weight:500!important;max-width:820px!important;margin:0 auto 40px!important;}
body.home .entry-content h3.newin-about-subheading{font-size:20px!important;line-height:1.6!important;font-weight:400!important;color:#4A4A46!important;margin-top:0!important;}
.newin-iso-tags{display:flex!important;gap:12px;flex-wrap:wrap;}
.newin-iso-box{display:flex;flex-direction:column;gap:2px;background:#F0E6CB;border-radius:14px;padding:10px 16px;}
.newin-iso-code{font-size:15px;font-weight:700;color:#191917;display:block;line-height:1.2;}
.newin-iso-label{font-size:11px;font-weight:400;color:#7A7266;display:block;margin-top:2px;line-height:1.2;}

/* === Redesign pass 48: bigger about-heading/body, single-line heading, button moved below ISO badges === */
body.home .entry-content h2.newin-about-heading{font-size:64px!important;line-height:1.15!important;font-weight:500!important;max-width:1300px!important;margin:0 auto 40px!important;white-space:normal;}
body.home .entry-content h3.newin-about-subheading{font-size:26px!important;line-height:1.5!important;font-weight:400!important;color:#4A4A46!important;}
.newin-about-cta-row{flex-direction:column!important;align-items:flex-start!important;gap:18px!important;}

/* === Redesign pass 49: heading left-align matches body column, button back beside ISO badges (right-aligned), mask map title/legend === */
body.home .entry-content h2.newin-about-heading{max-width:1200px!important;margin:0 auto 40px!important;text-align:left!important;}
.newin-about-section > .wp-block-columns{max-width:1200px!important;}
.newin-about-cta-row{flex-direction:row!important;align-items:center!important;justify-content:space-between!important;width:100%;}
body.home .newin-about-image, body.page-id-2418 .newin-about-image{position:relative!important;}
body.home .newin-about-image::before, body.page-id-2418 .newin-about-image::before{content:'';position:absolute;top:0;left:0;width:45%;height:11%;background:#fff;z-index:1;}
body.home .newin-about-image::after, body.page-id-2418 .newin-about-image::after{content:'';position:absolute;left:0;bottom:15%;width:30%;height:19%;background:#fff;z-index:1;}

/* === Redesign pass 50: widen shared container so heading fits one line, keep alignment === */
body.home .entry-content h2.newin-about-heading{max-width:1280px!important;}
.newin-about-section > .wp-block-columns{max-width:1280px!important;}

/* === Redesign pass 51: widen legend mask so no text peeks out === */
body.home .newin-about-image::after, body.page-id-2418 .newin-about-image::after{width:42%!important;height:20%!important;bottom:14%!important;}

/* === Redesign pass 52: tighten legend mask to avoid clipping Sõrve säär and Kilingi-Nõmme === */
body.home .newin-about-image::after, body.page-id-2418 .newin-about-image::after{left:8%!important;width:26%!important;top:60%!important;height:24%!important;bottom:auto!important;}

/* === Redesign pass 53: lock about-image container to the source image's natural aspect ratio so object-fit:cover never crops it differently at different widths - fixes the map mask position shifting across screen sizes === */
body.home .newin-about-image, body.page-id-2418 .newin-about-image{aspect-ratio:1702/1135!important;height:auto!important;align-self:flex-start!important;}

/* === Redesign pass 54: correct legend mask coordinates - precisely measured against the raw uncropped image (previous coordinates overlapped Saaremaa/Sõrve) === */
body.home .newin-about-image::after, body.page-id-2418 .newin-about-image::after{left:18%!important;top:68.5%!important;width:14%!important;height:14.5%!important;bottom:auto!important;}


/* === Redesign pass 55: kill blockGap margin on service rows (fixes white gap between rows on EN page) === */
.newin-service-row{margin-top:0!important;margin-bottom:0!important;}


/* === Redesign pass 56: apply front-page header/layout treatment to EN homepage (page-id-2418) === */
body.page-id-2418 header.wp-block-template-part{position:fixed;top:0;left:0;right:0;z-index:200;background:transparent!important;transition:background .2s;}
body.page-id-2418.newin-scrolled header.wp-block-template-part{background:rgba(25,25,23,0.92)!important;backdrop-filter:blur(6px);}
body.page-id-2418 header.wp-block-template-part .wp-block-navigation-item>a,body.page-id-2418 header.wp-block-template-part .wp-block-navigation__submenu-icon,body.page-id-2418 header.wp-block-template-part .wp-block-site-title,body.page-id-2418 header.wp-block-template-part .wp-block-site-title a{color:#fff!important;}
body.page-id-2418 .wp-block-post-title{display:none;}
body.page-id-2418 main.wp-block-group{margin-top:0!important;}
body.page-id-2418 main.wp-block-group>.wp-block-group.has-global-padding{padding-top:0!important;}
body.page-id-2418 .entry-content.has-global-padding{margin-top:0!important;}
body.page-id-2418 .entry-content > *{margin-top:0!important;}


/* === Redesign pass 57: replicate Ettevõttest (page-id-726) header/layout/heading treatment for EN About Us page (page-id-2422) === */
body.page-id-2422 h1.wp-block-post-title{display:none!important;}
body.page-id-2422 header.wp-block-template-part{position:fixed;top:0;left:0;right:0;z-index:200;background:transparent!important;transition:background .2s;}
body.page-id-2422 header.wp-block-template-part .wp-block-navigation-item>a,
body.page-id-2422 header.wp-block-template-part .wp-block-navigation__submenu-icon,
body.page-id-2422 header.wp-block-template-part .wp-block-site-title,
body.page-id-2422 header.wp-block-template-part .wp-block-site-title a{color:#fff!important;}
body.page-id-2422.newin-scrolled header.wp-block-template-part{background:rgba(25,25,23,0.92)!important;backdrop-filter:blur(6px);}
body.page-id-2422 main.wp-block-group{margin-top:0!important;}
body.page-id-2422 main.wp-block-group>.wp-block-group.has-global-padding{padding-top:0!important;}
body.page-id-2422 .entry-content.has-global-padding{margin-top:0!important;}
body.page-id-2422 .entry-content > *{margin-top:0!important;}
body.page-id-2422 .newin-page-hero-heading{text-align:center!important;}
body.page-id-2422 .newin-page-hero-heading{margin-left:auto!important;margin-right:auto!important;max-width:100%!important;}
body.page-id-2422 .newin-about-section .wp-block-columns{align-items:flex-start!important;}
body.page-id-2422 .newin-cert-heading{text-align:center!important;margin-left:auto!important;margin-right:auto!important;}
body.page-id-2422 .newin-tiles-heading{text-align:center!important;margin-left:auto!important;margin-right:auto!important;}
body.page-id-2422 .newin-feat-heading{text-align:left!important;}
body.page-id-2422 .newin-tile-heading{text-align:left!important;margin-left:0!important;margin-right:0!important;}


/* === Redesign pass 58: replicate Kontakt (page-id-1567) header/layout/heading treatment for EN Contact page (page-id-2424) === */
body.page-id-2424 h1.wp-block-post-title{display:none!important;}
body.page-id-2424 header.wp-block-template-part{position:fixed;top:0;left:0;right:0;z-index:200;background:transparent!important;transition:background .2s;}
body.page-id-2424 header.wp-block-template-part .wp-block-navigation-item>a,
body.page-id-2424 header.wp-block-template-part .wp-block-navigation__submenu-icon,
body.page-id-2424 header.wp-block-template-part .wp-block-site-title,
body.page-id-2424 header.wp-block-template-part .wp-block-site-title a{color:#fff!important;}
body.page-id-2424.newin-scrolled header.wp-block-template-part{background:rgba(25,25,23,0.92)!important;backdrop-filter:blur(6px);}
body.page-id-2424 main.wp-block-group{margin-top:0!important;}
body.page-id-2424 main.wp-block-group>.wp-block-group.has-global-padding{padding-top:0!important;}
body.page-id-2424 .entry-content.has-global-padding{margin-top:0!important;}
body.page-id-2424 .entry-content > *{margin-top:0!important;}
body.page-id-2424 .newin-page-hero-heading{text-align:center!important;margin-left:auto!important;margin-right:auto!important;max-width:100%!important;}
body.page-id-2424 .newin-tiles-heading{margin-left:auto!important;margin-right:auto!important;}
body.page-id-2424 .newin-contact-section{margin-top:64px!important;margin-bottom:64px!important;}
body.page-id-2424 .newin-team-section{margin-top:0;padding-top:0;}
body.page-id-2424 .newin-team-section{margin-top:64px!important;}
body.page-id-2424 .newin-dept-section{margin-top:64px!important;margin-bottom:64px!important;}
body.page-id-2424 .newin-contact-section{margin-top:0!important;}
body.page-id-2424 .newin-contact-section h2{text-align:center!important;}
body.page-id-2424 .newin-contact-section{padding-top:8px;}
body.page-id-2424 .newin-dept-section{margin-top:96px!important;margin-bottom:64px!important;}
body.page-id-2424 .newin-team-section{margin-bottom:80px!important;}


/* === Redesign pass 59: replace default red focus box on logo link with a subtle underline === */
a.custom-logo-link:focus,
a.custom-logo-link:focus-visible {
  outline: none !important;
  box-shadow: inset 0 -3px 0 0 #931F21 !important;
}


/* === Redesign pass 61: mobile fix - stack dept/tile card grids to 1 column below 680px (was fixed 2/3 columns with no media query, causing squished unreadable text on phones) === */
@media (max-width: 680px) {
  .newin-dept-grid,
  .newin-dept-grid3 {
    display: flex !important;
    flex-direction: column !important;
  }
  .newin-dept-grid > .wp-block-column,
  .newin-dept-grid3 > .wp-block-column {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .newin-service-row {
    flex-direction: column !important;
  }
  .newin-service-row .wp-block-column,
  .newin-service-row .wp-block-column:has(.newin-service-imgwrap) {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* === Redesign pass 61b: mobile fix - nav overlay menu text was white-on-white (invisible) inside the open hamburger menu === */
.wp-block-navigation__responsive-container.is-menu-open {
  background-color: #ffffff !important;
}
body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item > a.wp-block-navigation-item__content,
body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item > a.wp-block-navigation-item__content:hover,
body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item > a.wp-block-navigation-item__content:focus,
body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon {
  color: #191917 !important;
  fill: #191917 !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-open svg {
  fill: #191917 !important;
}


/* === Redesign pass 62: mobile UX polish (nav spacing, service image order, contact page tiles, hide electric map on mobile) === */
@media (max-width: 680px) {
  /* 62a: roomier, centered mobile nav overlay (was cramped small items pinned top-right) */
  .wp-block-navigation__responsive-container.is-menu-open {
    padding: 20px 24px !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
    align-self: flex-end !important;
    margin-bottom: 20px !important;
    padding: 10px !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
    width: 30px !important;
    height: 30px !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 32px !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item > a.wp-block-navigation-item__content {
    font-size: 26px !important;
    justify-content: center !important;
  }

  /* 62b: service rows - always show image before text on mobile (desktop uses an alternating zigzag order) */
  .newin-service-row .wp-block-column:has(.newin-service-imgwrap) {
    order: -1 !important;
  }
  .newin-service-row .wp-block-column:not(:has(.newin-service-imgwrap)) {
    order: 1 !important;
  }

  /* 62c: contact page - hide the small Estonia map tile on mobile, show the general contact (Peakontor) tile first */
  .newin-dept-section .wp-block-group:has(> .newin-dept-grid3) {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  .newin-dept-section .newin-dept-grid3 {
    display: contents !important;
  }
  .newin-dept-grid3 .wp-block-column:has(.newin-map-tile) {
    display: none !important;
  }
  .newin-dept-grid3 .wp-block-column:has(.newin-hq-tile) {
    order: -1 !important;
  }
  .newin-dept-grid3 .wp-block-column {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 62d: hide the Estonian electricity-grid map image on the homepage on mobile; keep it desktop-only */
  .newin-about-image {
    display: none !important;
  }
}

/* === Redesign pass 63: service voltage pills + USP boxes (23.08 sessioon content update) === */
.newin-voltage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 6px;
}
.newin-voltage-pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(196,106,63,0.35);
  background: rgba(196,106,63,0.08);
  color: #C46A3F;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.newin-usp-box {
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(196,106,63,0.35);
  border-radius: 12px;
  background: #FDF8F0;
}
.newin-usp-box .newin-usp-title {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 8px;
  color: #191917;
}
.newin-usp-box p.newin-usp-body {
  margin: 0;
  color: #4a4a47;
  font-size: 15px;
  line-height: 1.55;
}
.newin-usp-box.newin-usp-box-compact {
  padding: 14px 20px;
}
.newin-usp-box.newin-usp-box-compact .newin-usp-title {
  margin: 0;
}


/* === Redesign pass 64: Kanepi Energia case study card (23.08 sessioon) === */
.newin-case-card {
  margin-top: 32px;
  padding: 32px 36px;
  border: 1px solid rgba(196,106,63,0.45);
  border-radius: 16px;
  background: #FDF8F0;
}
.newin-case-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #191917;
  margin: 0 0 24px;
}
.newin-case-stats-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a86;
  margin: 0 0 12px;
}
.newin-case-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 24px;
}
.newin-case-stat {
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,0.6);
}
.newin-case-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #191917;
}
.newin-case-stat-label {
  font-size: 13px;
  color: #6a6a66;
  margin-top: 2px;
}
.newin-case-roll {
  border-top: 1px solid rgba(196,106,63,0.25);
  padding-top: 20px;
}
.newin-case-roll-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C46A3F;
  margin: 0 0 16px;
}
.newin-case-roll-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.newin-case-roll-item:last-child {
  margin-bottom: 0;
}
.newin-case-roll-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #C46A3F;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.newin-case-roll-text {
  font-size: 15px;
  line-height: 1.6;
  color: #4a4a47;
}
@media (max-width: 680px) {
  .newin-case-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .newin-case-card { padding: 24px 20px; }
}
