/* ==========================================================================
   NetZero Development — block theme components
   Tokens live in theme.json; this file only styles the site's components.
   ========================================================================== */

:root {
	--nz-accent: var(--wp--preset--color--accent, #dd9933);
	--nz-header-h: 110px;
	--nz-gutter: clamp(16px, 2vw, 25px);
	--nz-ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, video { max-width: 100%; }
.wp-site-blocks { padding-top: 0; }
.wp-site-blocks > * { margin-block-start: 0; }

/* -------------------------------------------------------------------------
   Header — transparent over the hero, turns into a white sticky bar on scroll
   ------------------------------------------------------------------------- */
.nz-header-wrap {
	position: absolute;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 100;
	transition: background-color .3s ease, box-shadow .3s ease;
}
.nz-header { min-height: var(--nz-header-h); display: flex; align-items: center; }
.nz-header > .nz-header__bar { width: 100%; min-height: var(--nz-header-h); }
.nz-logo { flex: 0 0 auto; margin: 0; line-height: 0; }
.nz-logo img { width: 113px; height: auto; }

.nz-nav { color: #fff; }
.nz-header-wrap .nz-nav .wp-block-navigation-item__content {
	color: #fff;
	padding: 8px 11px;
	border-radius: 3px;
	transition: background-color .2s ease, color .2s ease;
}
.nz-header-wrap .nz-nav .wp-block-navigation-item__content:hover { color: #fff; background: rgba(255, 255, 255, .25); }
.nz-header-wrap .nz-nav .current-menu-item > .wp-block-navigation-item__content,
.nz-header-wrap .nz-nav .wp-block-navigation-item__content[aria-current="page"] { background: rgba(221, 153, 51, .8); color: #fff; }

/* Sticky (scrolled) and solid (pages without a hero) states */
.nz-header-wrap.is-stuck {
	position: fixed;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 0 15px rgba(0, 0, 0, .07);
	animation: nzDrop .35s var(--nz-ease);
}
.nz-header-wrap.is-stuck { --nz-header-h: 92px; }
.nz-header-wrap.is-stuck .nz-logo img { width: 105px; }
.nz-header-wrap.is-solid { position: relative; top: 0; background: #fff; box-shadow: 0 0 15px rgba(0, 0, 0, .07); }
.nz-header-wrap.is-stuck.is-stuck .nz-nav .wp-block-navigation-item__content,
.nz-header-wrap.is-solid.is-solid .nz-nav .wp-block-navigation-item__content { color: var(--wp--preset--color--heading); }
.nz-header-wrap.is-stuck.is-stuck .nz-nav .wp-block-navigation-item__content:hover,
.nz-header-wrap.is-solid.is-solid .nz-nav .wp-block-navigation-item__content:hover { color: var(--nz-accent); background: transparent; }
.nz-header-wrap.is-stuck.is-stuck .nz-nav .current-menu-item > .wp-block-navigation-item__content,
.nz-header-wrap.is-stuck.is-stuck .nz-nav .wp-block-navigation-item__content[aria-current="page"],
.nz-header-wrap.is-solid.is-solid .nz-nav .current-menu-item > .wp-block-navigation-item__content,
.nz-header-wrap.is-solid.is-solid .nz-nav .wp-block-navigation-item__content[aria-current="page"] { background: var(--nz-accent); color: #fff; }
@keyframes nzDrop { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* Mobile menu */
.nz-nav .wp-block-navigation__responsive-container-open { color: #fff; }
.nz-header-wrap.is-stuck.is-stuck .nz-nav .wp-block-navigation__responsive-container-open,
.nz-header-wrap.is-solid.is-solid .nz-nav .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--heading); }
.nz-nav .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
.nz-nav .wp-block-navigation__responsive-container.is-menu-open { background: #fff; color: var(--wp--preset--color--heading); padding: 24px; }
.nz-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: var(--wp--preset--color--heading); font-size: 20px; padding: 10px 12px; }
.nz-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 6px; padding-top: 50px; }

@media (max-width: 1100px) {
	.nz-header > .nz-header__bar { gap: 24px !important; }
	.nz-nav { font-size: 15px !important; }
	.nz-nav .wp-block-navigation-item__content { padding: 7px 8px; }
}
@media (max-width: 781px) {
	:root { --nz-header-h: 80px; }
	.nz-logo img { width: 80px; }
	.nz-header > .nz-header__bar { justify-content: space-between !important; }
}

/* -------------------------------------------------------------------------
   Page hero (Cover block, style "Page hero")
   ------------------------------------------------------------------------- */
.wp-block-cover.is-style-nz-hero {
	min-height: 800px;
	padding: 0 var(--nz-gutter);
	align-items: flex-end;
	overflow: hidden;
}
.wp-block-cover.is-style-nz-hero .wp-block-cover__inner-container {
	width: 100% !important;
	max-width: 1300px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 0 0 120px;
	position: relative;
	color: #fff;
}
.wp-block-cover.is-style-nz-hero h1 {
	color: #fff;
	font-family: var(--wp--preset--font-family--roboto-condensed);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--hero);
	line-height: 1.1;
	margin: 0 0 20px;
	max-width: 1000px;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.wp-block-cover.is-style-nz-hero .nz-hero-sub {
	display: block;
	width: min(46vw, 767px);
	margin: 0;
	padding: 0 40px 0 30px;
	font-family: var(--wp--preset--font-family--roboto);
	font-size: clamp(18px, 2vw, 26px);
	line-height: 1.385;
	color: #fff;
	background: rgba(17, 24, 39, .78);
	border-left: 4px solid #e8a33d;
	padding-top: 6px;
	padding-bottom: 6px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
.wp-block-cover.is-style-nz-hero .nz-hero-thumb {
	position: absolute;
	left: 835px;
	bottom: 120px;
	margin: 0;
	width: 60px;
	height: 60px;
	border: 2px solid rgba(255, 255, 255, .85);
	box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}
.wp-block-cover.is-style-nz-hero .nz-hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-block-cover.is-style-nz-hero .wp-block-cover__image-background,
.wp-block-cover.is-style-nz-hero .wp-block-cover__video-background { animation: nzZoom 14s ease-out both; }
@keyframes nzZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Home hero: video, two-line title */
.wp-block-cover.nz-hero--video { background: #c9c9c9 url("../../../../uploads/revslider/video-media/NetZeroWave_48.jpeg") center / cover no-repeat; }
.wp-block-cover.nz-hero--video h1 { max-width: 700px; }

@media (max-width: 1024px) {
	.wp-block-cover.is-style-nz-hero { min-height: 600px !important; }
	.wp-block-cover.is-style-nz-hero .wp-block-cover__inner-container { padding-bottom: 90px; }
	.wp-block-cover.is-style-nz-hero .nz-hero-thumb { display: none; }
}
@media (max-width: 781px) { .wp-block-cover.is-style-nz-hero .nz-hero-sub { width: 100%; } }
@media (max-width: 600px) {
	.wp-block-cover.is-style-nz-hero { min-height: 520px !important; }
	.wp-block-cover.is-style-nz-hero .nz-hero-sub { padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-cover.is-style-nz-hero .wp-block-cover__image-background,
	.wp-block-cover.is-style-nz-hero .wp-block-cover__video-background { animation: none; }
}

/* -------------------------------------------------------------------------
   Home link cards (Cover block, style "Link card")
   ------------------------------------------------------------------------- */
.nz-cards { gap: 10px !important; }
.wp-block-cover.is-style-nz-card {
	min-height: 337px;
	padding: 100px 24px;
	text-align: center;
	overflow: hidden;
}
.wp-block-cover.is-style-nz-card .wp-block-cover__image-background { transition: transform .8s var(--nz-ease); }
.wp-block-cover.is-style-nz-card .wp-block-cover__background { transition: opacity .4s ease; }
.wp-block-cover.is-style-nz-card:hover .wp-block-cover__image-background { transform: scale(1.06); }
.wp-block-cover.is-style-nz-card:hover .wp-block-cover__background { opacity: .6 !important; }
.wp-block-cover.is-style-nz-card h3 {
	color: #fff;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1;
	margin: 0 0 30px;
}
.wp-block-cover.is-style-nz-card h3 a { color: inherit; }
.wp-block-cover.is-style-nz-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.wp-block-cover.is-style-nz-card p { color: #fff; font-size: 20px; line-height: 1.28; margin: 0; }
@media (max-width: 1100px) { .nz-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) { .nz-cards { grid-template-columns: minmax(0, 1fr) !important; } .wp-block-cover.is-style-nz-card { min-height: 260px; padding: 70px 20px; } }

/* -------------------------------------------------------------------------
   Carousels (Gallery block, style "Carousel" / "Carousel (caption bar)")
   ------------------------------------------------------------------------- */
.nz-carousel { position: relative; --nz-gap: 10px; --nz-per: 3; }
.wp-block-gallery.is-style-nz-carousel,
.wp-block-gallery.is-style-nz-carousel-bar {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: var(--nz-gap, 10px) !important;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	margin: 0;
}
.wp-block-gallery.is-style-nz-carousel::-webkit-scrollbar,
.wp-block-gallery.is-style-nz-carousel-bar::-webkit-scrollbar { display: none; }
.wp-block-gallery.has-nested-images.is-style-nz-carousel figure.wp-block-image,
.wp-block-gallery.has-nested-images.is-style-nz-carousel-bar figure.wp-block-image {
	flex: 0 0 calc((100% - (var(--nz-per, 3) - 1) * var(--nz-gap, 10px)) / var(--nz-per, 3)) !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}
.wp-block-gallery.has-nested-images.is-style-nz-carousel figure.wp-block-image img,
.wp-block-gallery.has-nested-images.is-style-nz-carousel-bar figure.wp-block-image img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	flex: none !important;
}
.wp-block-gallery.has-nested-images.is-style-nz-carousel figure.wp-block-image figcaption,
.wp-block-gallery.has-nested-images.is-style-nz-carousel-bar figure.wp-block-image figcaption {
	position: static !important;
	background: none;
	max-height: none !important;
	overflow: visible !important;
	padding: 10px 8px 0;
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 16px;
	line-height: 1.6;
	text-align: center;
	text-shadow: none;
	-webkit-mask-image: none;
	mask-image: none;
	backdrop-filter: none;
}
.wp-block-gallery.has-nested-images.is-style-nz-carousel figure.wp-block-image::before,
.wp-block-gallery.has-nested-images.is-style-nz-carousel-bar figure.wp-block-image::before { display: none; }
.wp-block-gallery.has-nested-images.is-style-nz-carousel-bar figure.wp-block-image figcaption {
	background: rgba(102, 102, 102, .9);
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	padding: 8px 10px;
	min-height: 35px;
}

.nz-carousel__btn {
	position: absolute;
	top: calc(var(--nz-arrow-top, 42%));
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 64px;
	border: 0;
	padding: 0;
	cursor: pointer;
	background: transparent;
	color: #fff;
	display: grid;
	place-items: center;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45));
	transition: opacity .2s ease, transform .2s ease;
}
.nz-carousel__btn svg { width: 22px; height: 22px; }
.nz-carousel__btn:hover { opacity: .75; }
.nz-carousel__btn:focus-visible { outline: 2px solid var(--nz-accent); outline-offset: 2px; }
.nz-carousel__btn--prev { left: 6px; }
.nz-carousel__btn--next { right: 6px; }
.nz-carousel--plain .nz-carousel__btn { color: rgba(255, 255, 255, .9); }
.nz-carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.nz-carousel__dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; background: rgba(0, 0, 0, .2); cursor: pointer; }
.nz-carousel__dots button[aria-current="true"] { background: #000; }

@media (max-width: 1024px) { .nz-carousel { --nz-per: 2; } }
@media (max-width: 600px) { .nz-carousel { --nz-per: 1; } }

/* -------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */
.nz-section-full, .nz-carousel.alignfull { padding-left: 17px !important; padding-right: 17px !important; }
.nz-carousel.alignfull .nz-carousel__btn--prev { left: 23px; }
.nz-carousel.alignfull .nz-carousel__btn--next { right: 23px; }
.nz-carousel > .wp-block-gallery.nz-section-full { padding-left: 0 !important; padding-right: 0 !important; }
.nz-videos { gap: 10px !important; padding: 10px !important; }
.nz-videos .wp-block-video { margin: 0; }
.nz-videos video { width: 100%; aspect-ratio: 553 / 318; object-fit: cover; background: #000; display: block; }
@media (max-width: 781px) { .nz-videos { flex-direction: column; } }

.nz-text { padding-top: clamp(50px, 6vw, 80px); padding-bottom: clamp(40px, 5vw, 70px); }
.nz-text p, .nz-text li { color: #000; font-size: 18px; line-height: 1.6; }
.nz-text ul { padding-left: 18px; }

.nz-banner { margin-bottom: 18px !important; }
.nz-banner img { width: 100%; height: auto; display: block; }
.wp-block-gallery.nz-grid { gap: 18px !important; }
.wp-block-gallery.has-nested-images.nz-grid figure.wp-block-image:not(#nz) { width: calc(50% - 9px) !important; flex-grow: 0 !important; }
@media (max-width: 600px) { .wp-block-gallery.has-nested-images.nz-grid figure.wp-block-image:not(#nz) { width: 100% !important; } }
.wp-block-gallery.nz-grid figure.wp-block-image img { aspect-ratio: 16 / 9; object-fit: cover; }

/* -------------------------------------------------------------------------
   Contact form (Contact Form 7)
   ------------------------------------------------------------------------- */
.nz-contact { padding-top: clamp(40px, 5vw, 60px); padding-bottom: 50px; }
.nz-contact h3 { color: var(--wp--preset--color--heading); font-size: var(--wp--preset--font-size--xx-large); margin: 0 0 22px; }
.nz-form p { margin: 0 0 10px; }
.nz-form br { display: none; }
.nz-form label { display: block; }
.nz-form .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nz-form input[type="text"],
.nz-form input[type="email"],
.nz-form input[type="tel"],
.nz-form textarea {
	width: 100%;
	box-sizing: border-box;
	font: 400 15px/1.6 var(--wp--preset--font-family--roboto);
	color: #333;
	background: #fff;
	border: 1px solid rgba(51, 51, 51, .12);
	border-radius: 0;
	padding: 5px 15px;
	min-height: 38px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.nz-form textarea { height: 102px; min-height: 102px; resize: vertical; }
.nz-form input:focus, .nz-form textarea:focus { outline: none; border-color: var(--nz-accent); box-shadow: 0 0 0 3px rgba(221, 153, 51, .15); }
.nz-form ::placeholder { color: #85868c; opacity: 1; }
.nz-form .wpcf7-submit {
	width: 252px;
	max-width: 100%;
	height: 34px;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
	background: var(--nz-accent);
	color: #fff;
	font: 700 14px/1 var(--wp--preset--font-family--roboto-condensed);
	transition: background-color .2s ease;
}
.nz-form .wpcf7-submit:hover { background: #c4831f; }
.nz-form .wpcf7-spinner { vertical-align: middle; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 10px 14px; font-size: 15px; }
.wpcf7-not-valid-tip { font-size: 13px; margin-top: 4px; }

/* Consult One Forms — same look as the previous Contact Form 7 form */
.nz-form .cof-form .cof-field { margin: 0 0 10px; }
.nz-form .cof-form .cof-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nz-form .cof-form .cof-error { font-size: 13px; margin: 4px 0 0; }
.nz-form .cof-form .cof-actions { margin-top: 6px; }
.nz-form .cof-form .cof-submit {
	width: 252px;
	max-width: 100%;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
	background: var(--nz-accent);
	color: #fff;
	font: 700 14px/1 var(--wp--preset--font-family--roboto-condensed);
	box-shadow: none;
	transition: background-color .2s ease;
}
.nz-form .cof-form .cof-submit:hover { background: #c4831f; }
.nz-form .cof-form .cof-status { margin: 16px 0 0; font-size: 15px; }
.nz-form .cof-form .cof-legal { margin: 10px 0 0; font-size: 12px; color: #85868c; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.nz-footer { color: #fff; }
.nz-footer__logo { margin: 0; }
.nz-footer__title { color: rgba(255, 255, 255, .5) !important; font-size: 16px !important; margin: 0 0 26px; }
.nz-footer__nav { font-family: var(--wp--preset--font-family--roboto) !important; font-size: 16px !important; font-weight: 400 !important; text-transform: none !important; line-height: 1.6 !important; }
.nz-footer__nav .wp-block-navigation-item__content { color: #fff; padding: 0; }
.nz-footer__nav .wp-block-navigation-item__content:hover { color: var(--nz-accent); }
.nz-contact-list { list-style: none; padding: 0; margin: 0; }
.nz-contact-list li {
	position: relative;
	padding-left: 24px;
	margin: 0 0 18px;
	font: 700 20px/1.4 var(--wp--preset--font-family--roboto-condensed);
	color: #fff;
}
.nz-contact-list li a { color: #fff; }
.nz-contact-list li a:hover { color: var(--nz-accent); }
.nz-contact-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .38em;
	width: 14px;
	height: 14px;
	background: var(--nz-accent);
	-webkit-mask: var(--nz-ico-pin) center / contain no-repeat;
	mask: var(--nz-ico-pin) center / contain no-repeat;
	--nz-ico-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M172 501C27 291 0 269 0 192 0 86 86 0 192 0s192 86 192 192c0 77-27 99-172 309a24 24 0 0 1-40 0zm20-229a80 80 0 1 0 0-160 80 80 0 0 0 0 160z'/%3E%3C/svg%3E");
}
.nz-contact-list li:first-child::before {
	--nz-ico-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M502 191c4-3 10 0 10 5v204c0 27-21 48-48 48H48c-27 0-48-21-48-48V196c0-5 6-8 10-5 22 17 52 39 154 113 21 15 57 48 92 47 36 1 72-32 92-47 102-74 132-96 154-113zM256 320c23 0 57-29 73-41 133-96 143-104 174-128 6-5 9-12 9-19v-20c0-27-21-48-48-48H48C21 64 0 85 0 112v20c0 7 3 14 9 19 31 24 41 32 174 128 16 12 50 41 73 41z'/%3E%3C/svg%3E");
	top: .42em;
}
.nz-footer__copy { color: rgba(255, 255, 255, .5); font-size: 16px; margin-bottom: 0; }
@media (max-width: 781px) {
	.nz-footer { padding-top: 70px !important; }
	.nz-footer__cols { gap: 36px !important; }
	.nz-footer__copy { margin-top: 50px !important; }
}

/* Back to top */
.nz-top {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 90;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 2px;
	cursor: pointer;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, .25);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s ease;
}
.nz-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.nz-top:hover { background: var(--nz-accent); }
.nz-top svg { width: 14px; height: 14px; }

/* Reveal on scroll (progressive enhancement; content is visible without JS) */
.nz-js .nz-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--nz-ease), transform .8s var(--nz-ease); }
.nz-js .nz-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .nz-js .nz-reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Breathing room above the footer, as on the original pages */
.nz-main .wp-block-post-content > :last-child { margin-bottom: 20px; }
.nz-main .wp-block-post-content > .wp-block-cover:first-child { margin-top: 0; }
